Struct jomini::ArrayReader
source · [−]pub struct ArrayReader<'data, 'tokens, E> { /* private fields */ }Expand description
A text reader that advances through a sequence of values
Implementations
sourceimpl<'data, 'tokens, E> ArrayReader<'data, 'tokens, E> where
E: Encoding + Clone,
impl<'data, 'tokens, E> ArrayReader<'data, 'tokens, E> where
E: Encoding + Clone,
sourcepub fn values_len(&self) -> usize
pub fn values_len(&self) -> usize
Return the number of values in the array
sourcepub fn next_value(&mut self) -> Option<ValueReader<'data, 'tokens, E>>
pub fn next_value(&mut self) -> Option<ValueReader<'data, 'tokens, E>>
Advance the array and return the next value
Trait Implementations
sourceimpl<'data, 'tokens, E: Clone> Clone for ArrayReader<'data, 'tokens, E>
impl<'data, 'tokens, E: Clone> Clone for ArrayReader<'data, 'tokens, E>
sourcefn clone(&self) -> ArrayReader<'data, 'tokens, E>
fn clone(&self) -> ArrayReader<'data, 'tokens, E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'data, 'tokens, E> RefUnwindSafe for ArrayReader<'data, 'tokens, E> where
E: RefUnwindSafe,
impl<'data, 'tokens, E> Send for ArrayReader<'data, 'tokens, E> where
E: Send,
impl<'data, 'tokens, E> Sync for ArrayReader<'data, 'tokens, E> where
E: Sync,
impl<'data, 'tokens, E> Unpin for ArrayReader<'data, 'tokens, E> where
E: Unpin,
'data: 'tokens,
impl<'data, 'tokens, E> UnwindSafe for ArrayReader<'data, 'tokens, E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more