pub enum StrCtx {
Delimiter(u8),
DelimiterUntil(u8, usize),
Length(usize),
}
Expand description
The parsing context for converting a byte sequence to a &str
StrCtx
specifies what byte delimiter to use, and defaults to C-style null terminators. Be careful.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> TryFromCtx<'a, StrCtx> for &'a str
impl<'a> TryFromCtx<'a, StrCtx> for &'a str
impl Copy for StrCtx
Auto Trait Implementations§
impl RefUnwindSafe for StrCtx
impl Send for StrCtx
impl Sync for StrCtx
impl Unpin for StrCtx
impl UnwindSafe for StrCtx
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