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>), }
Expand description
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]
impl<'data, 'tokens, E> Reader<'data, 'tokens, E> where
E: Encoding + Clone,
[src]pub fn read_string(&self) -> Result<String, DeserializeError>
[src]
pub fn read_string(&self) -> Result<String, DeserializeError>
[src]Interpret value as a string
pub fn read_scalar(&self) -> Result<Scalar<'data>, DeserializeError>
[src]
pub fn read_scalar(&self) -> Result<Scalar<'data>, DeserializeError>
[src]Interpret value as a scalar
Trait Implementations
Auto Trait Implementations
impl<'data, 'tokens, E> RefUnwindSafe for Reader<'data, 'tokens, E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<'data, 'tokens, E> Send for Reader<'data, 'tokens, E> where
E: Send,
E: Send,
impl<'data, 'tokens, E> Sync for Reader<'data, 'tokens, E> where
E: Sync,
E: Sync,
impl<'data, 'tokens, E> Unpin for Reader<'data, 'tokens, E> where
E: Unpin,
'data: 'tokens,
E: Unpin,
'data: 'tokens,
impl<'data, 'tokens, E> UnwindSafe for Reader<'data, 'tokens, E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more