Enum jomini::Reader [−][src]
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]
E: Encoding + Clone,
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]
fn clone(&self) -> Reader<'data, 'tokens, E>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,