Struct rustc_serialize::json::Builder
source · [−]Expand description
A Builder consumes a json::Parser to create a generic Json structure.
Fields
parser: Parser<T>token: Option<JsonEvent>Implementations
sourceimpl<T: Iterator<Item = char>> Builder<T>
impl<T: Iterator<Item = char>> Builder<T>
pub fn build(&mut self) -> Result<Json, BuilderError>
fn bump(&mut self)
fn build_value(&mut self) -> Result<Json, BuilderError>
fn build_array(&mut self) -> Result<Json, BuilderError>
fn build_object(&mut self) -> Result<Json, BuilderError>
Auto Trait Implementations
impl<T> RefUnwindSafe for Builder<T> where
T: RefUnwindSafe,
impl<T> Send for Builder<T> where
T: Send,
impl<T> Sync for Builder<T> where
T: Sync,
impl<T> Unpin for Builder<T> where
T: Unpin,
impl<T> UnwindSafe for Builder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.