pub struct ZTString<'a> { /* private fields */ }
Expand description
A zero-terminated string.
Implementations§
Trait Implementations§
Source§impl<'a> DataType for ZTString<'a>
impl<'a> DataType for ZTString<'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> = ZTString<'__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 ZTString<'a>
impl Eq for ZTString<'_>
Auto Trait Implementations§
impl<'a> Freeze for ZTString<'a>
impl<'a> RefUnwindSafe for ZTString<'a>
impl<'a> Send for ZTString<'a>
impl<'a> Sync for ZTString<'a>
impl<'a> Unpin for ZTString<'a>
impl<'a> UnwindSafe for ZTString<'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