pub trait Builder<'input>: Default + From<StaticNode> + From<i8> + From<i16> + From<i32> + From<i64> + From<u8> + From<u16> + From<u32> + From<u64> + From<f32> + From<f64> + From<bool> + From<()> + From<String> + From<&'input str> + From<Cow<'input, str>> {
    fn array_with_capacity(capacity: usize) -> Self;
    fn object_with_capacity(capacity: usize) -> Self;
    fn null() -> Self;

    fn array() -> Self { ... }
    fn object() -> Self { ... }
}
Expand description

Prelude to include needed traits Support of builder methods for traits.

Required Methods

Returns an empty array with a given capacity

Returns an empty object with a given capacity

Returns anull value

Provided Methods

Returns an empty array

Returns an empty object

Implementors