[][src]Struct jsonseq::JsonSeqReader

pub struct JsonSeqReader<R: Read> { /* fields omitted */ }

Reads data as JSON sequences

Implementations

impl<R: Read> JsonSeqReader<R>[src]

pub fn new(inner: R) -> Self[src]

Construct from a Read

pub fn new_from_str<'a>(s: &'a str) -> JsonSeqReader<Cursor<&'a [u8]>>

Notable traits for JsonSeqReader<R>

impl<R: Read> Iterator for JsonSeqReader<R> type Item = Result<Value, Error>;
[src]

Helper method to create from a &str

pub fn new_from_slice(s: &[u8]) -> JsonSeqReader<Cursor<&[u8]>>

Notable traits for JsonSeqReader<R>

impl<R: Read> Iterator for JsonSeqReader<R> type Item = Result<Value, Error>;
[src]

Helper method to create from a &u8

pub fn new_from_string(s: String) -> JsonSeqReader<Cursor<Vec<u8>>>

Notable traits for JsonSeqReader<R>

impl<R: Read> Iterator for JsonSeqReader<R> type Item = Result<Value, Error>;
[src]

Helper method to create from a String

pub fn next_item(&mut self) -> Result<Option<Value>, Error>[src]

Reads & returns the next JSON object.

pub fn read_item(&mut self) -> Result<Option<Value>, Error>[src]

pub fn get_ref(&self) -> &R[src]

Return a reference to the inner Read

pub fn get_mut(&mut self) -> &mut R[src]

Return a mutable reference to the inner Read

pub fn into_inner(self) -> R[src]

Consume, and return the inner Read

Trait Implementations

impl<R: Read> From<R> for JsonSeqReader<R>[src]

impl<R: Read> Iterator for JsonSeqReader<R>[src]

type Item = Result<Value, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> RefUnwindSafe for JsonSeqReader<R> where
    R: RefUnwindSafe

impl<R> Send for JsonSeqReader<R> where
    R: Send

impl<R> Sync for JsonSeqReader<R> where
    R: Sync

impl<R> Unpin for JsonSeqReader<R> where
    R: Unpin

impl<R> UnwindSafe for JsonSeqReader<R> where
    R: 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<!> for T[src]

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.