pub enum StringDelimiter {
WholeBuffer,
TerminationChar(Vec<u8>),
LeadingSize {
size_in_bits: u32,
},
}Expand description
How the derived string is delimited inside its raw buffer.
Variants§
WholeBuffer
The whole raw buffer is the string.
TerminationChar(Vec<u8>)
The string ends at the first occurrence of these bytes.
LeadingSize
The buffer starts with an integer of this many bits giving the string length in bits.
Trait Implementations§
Source§impl Clone for StringDelimiter
impl Clone for StringDelimiter
Source§impl Debug for StringDelimiter
impl Debug for StringDelimiter
Auto Trait Implementations§
impl Forget for StringDelimiter
impl Freeze for StringDelimiter
impl Move for StringDelimiter
impl RefUnwindSafe for StringDelimiter
impl Send for StringDelimiter
impl Sync for StringDelimiter
impl Unpin for StringDelimiter
impl UnsafeUnpin for StringDelimiter
impl UnwindSafe for StringDelimiter
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