pub trait FieldBuffer<'data>: AsRef<[JsonField<'data, 'data>]> {
// Provided methods
fn into_json_object(self) -> JsonObject<Self>
where Self: Sized { ... }
fn as_json_object(&self) -> JsonObject<&Self> { ... }
}Expand description
this trait is automatically implemented for all types that implement AsRef<[JsonField<’data,’data>]>
Provided Methods§
Sourcefn into_json_object(self) -> JsonObject<Self>where
Self: Sized,
fn into_json_object(self) -> JsonObject<Self>where
Self: Sized,
convenience one-liner to wrap an immutable reference to a collection of JsonFields with a JsonObject
Sourcefn as_json_object(&self) -> JsonObject<&Self>
fn as_json_object(&self) -> JsonObject<&Self>
convenience one-liner to wrap an immutable reference to a collection of JsonFields with a JsonObject
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.