Enum scroll::ctx::StrCtx  [−][src]
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)Length(usize)Implementations
impl StrCtx[src]
Trait Implementations
impl Clone for StrCtx[src]
impl Copy for StrCtx[src]
impl Debug for StrCtx[src]
impl Default for StrCtx[src]
impl<'a> TryFromCtx<'a, StrCtx, [u8]> for &'a str[src]
type Error = Error
fn try_from_ctx(
    src: &'a [u8], 
    ctx: StrCtx
) -> Result<(Self, usize), Self::Error>[src]
src: &'a [u8],
ctx: StrCtx
) -> Result<(Self, usize), 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]>,
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
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,