pub enum StringContext {
Fixed(usize),
U8Len,
U16Len(Endian),
U32Len(Endian),
NullTerminated,
}Variants§
Trait Implementations§
Source§impl<const SIZE: usize> Codec<StringContext> for String<SIZE>
impl<const SIZE: usize> Codec<StringContext> for String<SIZE>
fn encode( self, buf: &mut impl EncodeBuffer, ctx: StringContext, ) -> Result<(), EncodeError>
fn decode( buf: &mut impl DecodeBuffer, ctx: StringContext, ) -> Result<Self, DecodeError>
Auto Trait Implementations§
impl Freeze for StringContext
impl RefUnwindSafe for StringContext
impl Send for StringContext
impl Sync for StringContext
impl Unpin for StringContext
impl UnwindSafe for StringContext
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