pub struct LString<'a> { /* private fields */ }
Expand description
A length-prefixed string.
Implementations§
Trait Implementations§
Source§impl<'a> DataType for LString<'a>
impl<'a> DataType for LString<'a>
const META: StructFieldMeta
type BuilderForStruct<'unused> = &'a str
Source§type BuilderForEncode = &'a str
type BuilderForEncode = &'a str
Always a reference
type DecodeLifetime<'__next_lifetime> = LString<'__next_lifetime>
fn decode<'__next_lifetime>( buf: &mut &'__next_lifetime [u8], ) -> Result<Self::DecodeLifetime<'__next_lifetime>, ParseError>
fn encode<'__buffer_lifetime, '__value_lifetime>( buf: &mut BufWriter<'__buffer_lifetime>, value: &'__value_lifetime Self::BuilderForEncode, )
fn encode_usize<'a>(buf: &mut BufWriter<'a>, value: usize)
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
impl<'a> Copy for LString<'a>
impl Eq for LString<'_>
Auto Trait Implementations§
impl<'a> Freeze for LString<'a>
impl<'a> RefUnwindSafe for LString<'a>
impl<'a> Send for LString<'a>
impl<'a> Sync for LString<'a>
impl<'a> Unpin for LString<'a>
impl<'a> UnwindSafe for LString<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more