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]

[src]

Trait Implementations

impl Debug for StrCtx
[src]

[src]

Formats the value using the given formatter.

impl Copy for StrCtx
[src]

impl Clone for StrCtx
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for StrCtx
[src]

[src]

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