Enum scroll::ctx::StrCtx[][src]

pub enum StrCtx {
    Delimiter(u8),
    DelimiterUntil(u8usize),
    Length(usize),
}

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

Methods

impl StrCtx
[src]

Trait Implementations

impl Debug for StrCtx
[src]

Formats the value using the given formatter. Read more

impl Copy for StrCtx
[src]

impl Clone for StrCtx
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for StrCtx
[src]

Returns the "default value" for a type. Read more

impl<'a> TryFromCtx<'a, StrCtx> for &'a str
[src]

Read a &str from src using delimiter

impl<'a, T> TryFromCtx<'a, StrCtx, T> for &'a str where
    T: AsRef<[u8]>, 
[src]

Auto Trait Implementations

impl Send for StrCtx

impl Sync for StrCtx