Cow<'_, str>.CStr.Cow<'_, str>.CStr.Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in the big-endian byte order. Read moreself in the little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself. Read moreself. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreRead methods, if empty. Read moreamount of additional bytes from the internal buffer as having been read.\nSubsequent calls to read only return bytes that have not been marked as read. Read morebuf_read_has_data_left)read. Read morebyte or EOF is reached. Read more0xA byte) is reached, and append\nthem to the provided String buffer. Read morecb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read moreVarULE] typeVarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read moreVarULE] typeVarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]Type in its binary format. Read moreType.mode version of split_at_position
\nmode version of split_at_position
\n&str, the position\ncorresponds to the byte index of the characterindex bytes. panics if index > lengthindex byte offset. panics if index > length&str, the position\ncorresponds to the byte index of the characterparse() succeeded Read moreThis is a shortcut for [literal][crate::token::literal].
\nfn parser<'s>(s: &mut &'s [u8]) -> ModalResult<&'s [u8]> {\n alt((&\"Hello\"[..], take(5usize))).parse_next(s)\n}\n\nassert_eq!(parser.parse_peek(&b\"Hello, World!\"[..]), Ok((&b\", World!\"[..], &b\"Hello\"[..])));\nassert_eq!(parser.parse_peek(&b\"Something\"[..]), Ok((&b\"hing\"[..], &b\"Somet\"[..])));\nassert!(parser.parse_peek(&b\"Some\"[..]).is_err());\nassert!(parser.parse_peek(&b\"\"[..]).is_err());Stream], turning it into the output Read moreinput, generating O from itStream], turning it into the output Read more&mut Self as a parser Read moreParser Read morestd::convert::From Read moreResult over the output of a parser. Read morestd::str::FromStr to the output of the parser Read moreIncomplete][crate::error::ErrMode::Incomplete] into [Backtrack][crate::error::ErrMode::Backtrack] Read morestd::convert::FromRead is implemented for &[u8] by copying from the slice.
Note that reading updates the slice to point to the yet unread part.\nThe slice will be empty when EOF is reached.
\nread_buf)read, except that it reads into a slice of buffers. Read morecan_vector)buf. Read moreread_buf)cursor. Read morebuf. Read morebuf. Read moreRead. Read moreu8 slice at the given offset. Read moreu8 slice which starts at range.start. Read moreu8 slice at the given offset, and update the offset. Read morePod type at the given offset, and update the offset. Read morePod type at the given offset. Read moreScalar] type.tokens into the stream Read moreSelf::Checkpoint] Read moreStream::traceStream::trace]Stream] is can ever be incompleteStream] is currently incompleteself into the binary format of the specified\nPostgres Type, appending it to out. Read moreType.self into the binary format of the specified\nPostgres Type, appending it to out. Read moreType.Output type to be used as StreamCow<'_, str>.CStr.Cow<'_, str>.CStr.Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in the big-endian byte order. Read moreself in the little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself. Read moreself. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreself in big-endian byte order. Read moreself in little-endian byte order. Read moreself in native-endian byte order. Read moreRead methods, if empty. Read moreamount of additional bytes from the internal buffer as having been read.\nSubsequent calls to read only return bytes that have not been marked as read. Read morebuf_read_has_data_left)read. Read morebyte or EOF is reached. Read more0xA byte) is reached, and append\nthem to the provided String buffer. Read moreBased off of the empty function, allows override for optimization purposes.
Buffer. This is different than Default b/c it\nguarantees that the buffer instance will have length zero. Read moreslice. Read moreImplement deserialize from &u8 for all types which implement BinarySerializable.
\nTryFrom would actually be preferable, but not possible because of the orphan\nrules (not completely sure if this could be resolved)
\nself into buf in the expected format for the database.self into buf in the expected format for the database.self into buf in the expected format for the database.self into buf in the expected format for the database.cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read moreVarULE] typeVarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read moreVarULE] typeVarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]Type in its binary format. Read moreType.mode version of split_at_position
\nmode version of split_at_position
\n&str, the position\ncorresponds to the byte index of the characterindex bytes. panics if index > lengthindex byte offset. panics if index > length&str, the position\ncorresponds to the byte index of the character","index::BytesRef"],[" This is a shortcut for [ Read is implemented for Note that reading updates the slice to point to the yet unread part.\nThe slice will be empty when EOF is reached.impl<R> ParseSlice<R> for &[u8]
fn parse_slice(&self) -> Option<R>
parse() succeeded Read moreimpl<'s, I, E> Parser<I, <I as Stream>::Slice, E> for &'s [u8]
literal][crate::token::literal].§Example
\n\nfn parser<'s>(s: &mut &'s [u8]) -> ModalResult<&'s [u8]> {\n alt((&\"Hello\"[..], take(5usize))).parse_next(s)\n}\n\nassert_eq!(parser.parse_peek(&b\"Hello, World!\"[..]), Ok((&b\", World!\"[..], &b\"Hello\"[..])));\nassert_eq!(parser.parse_peek(&b\"Something\"[..]), Ok((&b\"hing\"[..], &b\"Somet\"[..])));\nassert!(parser.parse_peek(&b\"Some\"[..]).is_err());\nassert!(parser.parse_peek(&b\"\"[..]).is_err());fn parse_next(&mut self, i: &mut I) -> Result<<I as Stream>::Slice, E>
Stream], turning it into the output Read morefn parse(\n &mut self,\n input: I,\n) -> Result<O, ParseError<I, <E as ParserError<I>>::Inner>>
input, generating O from itfn parse_peek(&mut self, input: I) -> Result<(I, O), E>
Stream], turning it into the output Read morefn by_ref(&mut self) -> ByRef<'_, Self, I, O, E>
&mut Self as a parser Read morefn default_value<O2>(self) -> DefaultValue<Self, I, O, O2, E>
fn void(self) -> Void<Self, I, O, E>
Parser Read morefn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>
std::convert::From Read morefn take(self) -> Take<Self, I, O, E>
fn with_taken(self) -> WithTaken<Self, I, O, E>
fn span(self) -> Span<Self, I, O, E>
fn with_span(self) -> WithSpan<Self, I, O, E>
fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>
fn try_map<G, O2, E2>(self, map: G) -> TryMap<Self, G, I, O, O2, E, E2>
Result over the output of a parser. Read morefn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>
fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>
fn and_then<G, O2>(self, inner: G) -> AndThen<Self, G, I, O, O2, E>
fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>
std::str::FromStr to the output of the parser Read morefn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>
fn context<C>(self, context: C) -> Context<Self, I, O, E, C>
fn context_with<F, C, FI>(\n self,\n context: F,\n) -> ContextWith<Self, I, O, E, F, C, FI>
fn map_err<G, E2>(self, map: G) -> MapErr<Self, G, I, O, E, E2>
fn complete_err(self) -> CompleteErr<Self, I, O, E>
Incomplete][crate::error::ErrMode::Incomplete] into [Backtrack][crate::error::ErrMode::Backtrack] Read morefn err_into<E2>(self) -> ErrInto<Self, I, O, E, E2>
std::convert::Fromimpl<T, U, const N: usize> PartialEq<[U; N]> for &[T]
impl<'a> PartialEq<ByteString> for &[u8]
impl<'a> PartialOrd<BStr> for &'a [u8]
impl PartialOrd<Bytes> for &[u8]
impl<'a> PartialOrd<Bytes> for &'a [u8]
impl PartialOrd<BytesMut> for &[u8]
impl PgHasArrayType for &[u8]
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
impl PrimitiveContent for &[u8]
fn encoded_len(&self, _: Mode) -> usize
fn write_encoded<W>(&self, _: Mode, target: &mut W) -> Result<(), Error>
fn to_encoded_bytes(&self, mode: Mode) -> Bytes
fn encode(self) -> Primitive<Self>
fn encode_as(self, tag: Tag) -> Primitive<Self>
fn encode_ref(&self) -> Primitive<&Self>
fn encode_ref_as(&self, tag: Tag) -> Primitive<&Self>
impl Pushable for &[u8]
fn push_to_builder(self, builder: &mut Builder)
impl Read for &[u8]
&[u8] by copying from the slice.fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
fn read_buf(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
read_buf)fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
read, except that it reads into a slice of buffers. Read morefn is_read_vectored(&self) -> bool
can_vector)fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
buf. Read morefn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
read_buf)cursor. Read morefn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
buf. Read morefn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
buf. Read morefn by_ref(&mut self) -> &mut Self
Read. Read moreimpl<'a> ReadRef<'a> for &'a [u8]
fn read_bytes_at(self, offset: u64, size: u64) -> Result<&'a [u8], ()>
u8 slice at the given offset. Read morefn read_bytes_at_until(\n self,\n range: Range<u64>,\n delimiter: u8,\n) -> Result<&'a [u8], ()>
u8 slice which starts at range.start. Read morefn read_bytes(self, offset: &mut u64, size: u64) -> Result<&'a [u8], ()>
u8 slice at the given offset, and update the offset. Read morefn read<T>(self, offset: &mut u64) -> Result<&'a T, ()>
Pod type at the given offset, and update the offset. Read morefn read_at<T>(self, offset: u64) -> Result<&'a T, ()>
Pod type at the given offset. Read moreimpl<'a> Replacer for &'a [u8]
impl<'a> ScalarRef<'a> for &'a [u8]
type ScalarType = Vec<u8>
Scalar] type.fn to_owned_scalar(&self) -> Vec<u8> ⓘ
impl<'i, T> Stream for &'i [T]
type IterOffsets = Enumerate<Cloned<Iter<'i, T>>>
type Checkpoint = Checkpoint<&'i [T], &'i [T]>
fn iter_offsets(&self) -> <&'i [T] as Stream>::IterOffsets ⓘ
fn eof_offset(&self) -> usize
fn next_token(&mut self) -> Option<<&'i [T] as Stream>::Token>
fn peek_token(&self) -> Option<<&'i [T] as Stream>::Token>
fn offset_for<P>(&self, predicate: P) -> Option<usize>
fn offset_at(&self, tokens: usize) -> Result<usize, Needed>
tokens into the stream Read morefn next_slice(&mut self, offset: usize) -> <&'i [T] as Stream>::Slice ⓘ
unsafe fn next_slice_unchecked(\n &mut self,\n offset: usize,\n) -> <&'i [T] as Stream>::Slice ⓘ
fn peek_slice(&self, offset: usize) -> <&'i [T] as Stream>::Slice ⓘ
unsafe fn peek_slice_unchecked(\n &self,\n offset: usize,\n) -> <&'i [T] as Stream>::Slice ⓘ
fn checkpoint(&self) -> <&'i [T] as Stream>::Checkpoint ⓘ
fn reset(&mut self, checkpoint: &<&'i [T] as Stream>::Checkpoint)
Self::Checkpoint] Read morefn raw(&self) -> &dyn Debug
Stream::traceStream::trace]fn trace(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn peek_finish(&self) -> Self::Slice
impl<T> StreamIsPartial for &[T]
type PartialState = ()
fn restore_partial(&mut self, _state: <&[T] as StreamIsPartial>::PartialState)
fn is_partial_supported() -> bool
Stream] is can ever be incompletefn is_partial(&self) -> bool
Stream] is currently incompleteimpl<T> ToSql for &[T]
fn to_sql(\n &self,\n ty: &Type,\n w: &mut BytesMut,\n) -> Result<IsNull, Box<dyn Error + Sync + Send>>
self into the binary format of the specified\nPostgres Type, appending it to out. Read morefn accepts(ty: &Type) -> bool
Type.fn to_sql_checked(\n &self,\n ty: &Type,\n out: &mut BytesMut,\n) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_format(&self, _ty: &Type) -> Format
impl ToSql for &[u8]
fn to_sql(\n &self,\n _: &Type,\n w: &mut BytesMut,\n) -> Result<IsNull, Box<dyn Error + Sync + Send>>
self into the binary format of the specified\nPostgres Type, appending it to out. Read morefn accepts(ty: &Type) -> bool
Type.fn to_sql_checked(\n &self,\n ty: &Type,\n out: &mut BytesMut,\n) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_format(&self, _ty: &Type) -> Format
impl<T> UpdateSlice for &[T]
fn update_slice(self, inner: <&[T] as Stream>::Slice) -> &[T]
Output type to be used as Streamimpl<'a> Value<'a> for &'a [u8]
type ArrayIter = Empty<&'a [u8]>
type ObjectIter = Empty<(&'a str, &'a [u8])>
fn as_value(&self) -> ReferenceValue<'a, &'a [u8]>
fn as_leaf(&self) -> Option<ReferenceValueLeaf<'a>>
fn as_str(&self) -> Option<&'a str>
fn as_u64(&self) -> Option<u64>
fn as_i64(&self) -> Option<i64>
fn as_f64(&self) -> Option<f64>
fn as_datetime(&self) -> Option<DateTime>
fn as_ip_addr(&self) -> Option<Ipv6Addr>
fn as_bool(&self) -> Option<bool>
fn as_pre_tokenized_text(&self) -> Option<Box<PreTokenizedString>>
fn as_bytes(&self) -> Option<&'a [u8]>
fn as_facet(&self) -> Option<&'a str>
impl ByteSlice for &[u8]
impl CloneableByteSlice for &[u8]
impl CopyableByteSlice for &[u8]