Enum jomini::Reader[][src]

pub enum Reader<'data, 'tokens, E> {
    Object(ObjectReader<'data, 'tokens, E>),
    Array(ArrayReader<'data, 'tokens, E>),
    Scalar(ScalarReader<'data, E>),
    Value(ValueReader<'data, 'tokens, E>),
}

All possible text reader variants

Variants

Object(ObjectReader<'data, 'tokens, E>)

object reader

Array(ArrayReader<'data, 'tokens, E>)

array reader

Scalar(ScalarReader<'data, E>)

scalar reader

Value(ValueReader<'data, 'tokens, E>)

value reader

Implementations

impl<'data, 'tokens, E> Reader<'data, 'tokens, E> where
    E: Encoding + Clone
[src]

pub fn read_str(&self) -> Result<Cow<'data, str>, DeserializeError>[src]

Interpret value as a string

pub fn read_string(&self) -> Result<String, DeserializeError>[src]

Interpret value as a string

pub fn read_scalar(&self) -> Result<Scalar<'data>, DeserializeError>[src]

Interpret value as a scalar

Trait Implementations

impl<'data, 'tokens, E: Clone> Clone for Reader<'data, 'tokens, E>[src]

impl<'data, 'tokens, E: Debug> Debug for Reader<'data, 'tokens, E>[src]

Auto Trait Implementations

impl<'data, 'tokens, E> RefUnwindSafe for Reader<'data, 'tokens, E> where
    E: RefUnwindSafe

impl<'data, 'tokens, E> Send for Reader<'data, 'tokens, E> where
    E: Send

impl<'data, 'tokens, E> Sync for Reader<'data, 'tokens, E> where
    E: Sync

impl<'data, 'tokens, E> Unpin for Reader<'data, 'tokens, E> where
    E: Unpin,
    'data: 'tokens, 

impl<'data, 'tokens, E> UnwindSafe for Reader<'data, 'tokens, E> where
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.