Skip to main content

ValueBufferMut

Trait ValueBufferMut 

Source
pub trait ValueBufferMut<'a>: ValueBuffer<'a> + AsMut<[JsonValue<'a>]> {
    // Provided method
    fn as_json_array_mut(&mut self) -> JsonArray<&mut Self> { ... }
}
Expand description

trait for a mutable collection of JSON array values

Provided Methods§

Source

fn as_json_array_mut(&mut self) -> JsonArray<&mut Self>

convenience one-liner to call JsonObject::wrap_init on a mutable reference to this type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, T: ValueBuffer<'a> + AsMut<[JsonValue<'a>]>> ValueBufferMut<'a> for T

ValueBufferMut is automatically implemented for all types that implement FieldBuffer + AsMut<[JsonField<’data,’data>]>