FieldBufferMut

Trait FieldBufferMut 

Source
pub trait FieldBufferMut<'a>: FieldBuffer<'a> + AsMut<[JsonField<'a, 'a>]> {
    // Provided method
    fn as_json_object_mut(&mut self) -> JsonObject<&mut Self> { ... }
}
Expand description

trait for a mutable collection of JSON object fields

Provided Methods§

Source

fn as_json_object_mut(&mut self) -> JsonObject<&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", so this trait is not object safe.

Implementors§

Source§

impl<'a, T: FieldBuffer<'a> + AsMut<[JsonField<'a, 'a>]>> FieldBufferMut<'a> for T

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