[−][src]Enum scroll::ctx::StrCtx  
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
Delimiter(u8)DelimiterUntil(u8, usize)Length(usize)Methods
impl StrCtx[src]
Trait Implementations
impl<'a> TryFromCtx<'a, StrCtx, [u8]> for &'a str[src]
type Error = Error
type Size = usize
fn try_from_ctx(
    src: &'a [u8], 
    ctx: StrCtx
) -> Result<(Self, Self::Size), Self::Error>[src]
src: &'a [u8],
ctx: StrCtx
) -> Result<(Self, Self::Size), Self::Error>
Read a &str from src using delimiter
impl<'a, T> TryFromCtx<'a, StrCtx, T> for &'a str where
    T: AsRef<[u8]>, [src]
T: AsRef<[u8]>,
type Error = Error
type Size = usize
fn try_from_ctx(
    src: &'a T, 
    ctx: StrCtx
) -> Result<(Self, Self::Size), Self::Error>[src]
src: &'a T,
ctx: StrCtx
) -> Result<(Self, Self::Size), Self::Error>
impl Copy for StrCtx[src]
impl Default for StrCtx[src]
impl Clone for StrCtx[src]
fn clone(&self) -> StrCtx[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for StrCtx[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,