Struct jomini::ValueReader[][src]

pub struct ValueReader<'data, 'tokens, E> { /* fields omitted */ }

A text reader for a text value

Implementations

impl<'data, 'tokens, E> ValueReader<'data, 'tokens, E>[src]

pub fn token(&self) -> &TextToken<'data>[src]

Return the token that the reader is abstracting

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

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

Interpret the current value as string

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

Interpret the current value as string

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

Interpret the current value as a scalar

pub fn read_object(
    &self
) -> Result<ObjectReader<'data, 'tokens, E>, DeserializeError>
[src]

Interpret the current value as an object

pub fn read_array(
    &self
) -> Result<ArrayReader<'data, 'tokens, E>, DeserializeError>
[src]

Interpret the current value as an array

Trait Implementations

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

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

impl<'data, 'tokens, E> Encoding for ValueReader<'data, 'tokens, E> where
    E: Encoding
[src]

Auto Trait Implementations

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

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

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

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

impl<'data, 'tokens, E> UnwindSafe for ValueReader<'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.