pub struct Parser<T> {
// some fields omitted
}
A streaming JSON parser implemented as an iterator of JsonEvent, consuming
an iterator of char.
Methods
fn stack<'l>(&'l self) -> &'l Stack
Provides access to the current position in the logical structure of the
JSON stream.
Trait Implementations
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> where U: IntoIterator
fn map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(<Self as Iterator>::Item), <F as FnOnce(<Self as Iterator>::Item)>::Output == B
fn filter<P>(self, predicate: P) -> Filter<Self, P> where P: FnMut(&<Self as Iterator>::Item), <P as FnOnce(&<Self as Iterator>::Item)>::Output == bool
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where P: FnMut(&<Self as Iterator>::Item), <P as FnOnce(&<Self as Iterator>::Item)>::Output == bool
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where P: FnMut(&<Self as Iterator>::Item), <P as FnOnce(&<Self as Iterator>::Item)>::Output == bool
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where F: FnMut(&mut St, <Self as Iterator>::Item), <F as FnOnce(&mut St, <Self as Iterator>::Item)>::Output == Option<B>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where U: IntoIterator, F: FnMut(<Self as Iterator>::Item), <F as FnOnce(<Self as Iterator>::Item)>::Output == U
fn fuse(self) -> Fuse<Self>
fn inspect<F>(self, f: F) -> Inspect<Self, F> where F: FnMut(&<Self as Iterator>::Item), <F as FnOnce(&<Self as Iterator>::Item)>::Output == ()
fn by_ref(&mut self) -> &mut Self
fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, <Self as Iterator>::Item), <F as FnOnce(B, <Self as Iterator>::Item)>::Output == B
fn all<F>(&mut self, f: F) -> bool where F: FnMut(<Self as Iterator>::Item), <F as FnOnce(<Self as Iterator>::Item)>::Output == bool
fn any<F>(&mut self, f: F) -> bool where F: FnMut(<Self as Iterator>::Item), <F as FnOnce(<Self as Iterator>::Item)>::Output == bool
fn find<P>(&mut self, predicate: P) -> Option<<Self as Iterator>::Item> where P: FnMut(&<Self as Iterator>::Item), <P as FnOnce(&<Self as Iterator>::Item)>::Output == bool
fn position<P>(&mut self, predicate: P) -> Option<usize> where P: FnMut(<Self as Iterator>::Item), <P as FnOnce(<Self as Iterator>::Item)>::Output == bool
fn max_by<B, F>(self, f: F) -> Option<<Self as Iterator>::Item> where B: Ord, F: FnMut(&<Self as Iterator>::Item), <F as FnOnce(&<Self as Iterator>::Item)>::Output == B
fn min_by<B, F>(self, f: F) -> Option<<Self as Iterator>::Item> where B: Ord, F: FnMut(&<Self as Iterator>::Item), <F as FnOnce(&<Self as Iterator>::Item)>::Output == B
fn cloned<'a, T>(self) -> Cloned<Self> where T: 'a, Self: Iterator, <Self as Iterator>::Item == &'a T, T: Clone
fn cycle(self) -> Cycle<Self> where Self: Clone
fn sum<S = <Self as Iterator>::Item>(self) -> S where S: Add<<Self as Iterator>::Item>, <S as Add<<Self as Iterator>::Item>>::Output == S, S: Zero
fn product<P = <Self as Iterator>::Item>(self) -> P where P: Mul<<Self as Iterator>::Item>, <P as Mul<<Self as Iterator>::Item>>::Output == P, P: One
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).