Struct nu_json::builder::ArrayBuilder [−][src]
pub struct ArrayBuilder { /* fields omitted */ }
Expand description
This structure provides a simple interface for constructing a JSON array.
Implementations
Construct an ObjectBuilder
.
Insert a value into the array.
pub fn push_array<F>(self, f: F) -> ArrayBuilder where
F: FnOnce(ArrayBuilder) -> ArrayBuilder,
pub fn push_array<F>(self, f: F) -> ArrayBuilder where
F: FnOnce(ArrayBuilder) -> ArrayBuilder,
Creates and passes an ArrayBuilder
into a closure, then inserts the resulting array into
this array.
pub fn push_object<F>(self, f: F) -> ArrayBuilder where
F: FnOnce(ObjectBuilder) -> ObjectBuilder,
pub fn push_object<F>(self, f: F) -> ArrayBuilder where
F: FnOnce(ObjectBuilder) -> ObjectBuilder,
Creates and passes an ArrayBuilder
into a closure, then inserts the resulting object into
this array.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArrayBuilder
impl Send for ArrayBuilder
impl Sync for ArrayBuilder
impl Unpin for ArrayBuilder
impl UnwindSafe for ArrayBuilder