pub trait SerializeViewField<Frames> {
// Required method
fn serialize_view_field<M>(
frames: &Frames,
map: M,
) -> Result<M::Ok, M::Error>
where M: SerializeMap;
}Expand description
Trait for serializing a single field in a view. Used for serializing a DataView.
Required Methods§
Sourcefn serialize_view_field<M>(frames: &Frames, map: M) -> Result<M::Ok, M::Error>where
M: SerializeMap,
fn serialize_view_field<M>(frames: &Frames, map: M) -> Result<M::Ok, M::Error>where
M: SerializeMap,
Serialize this single field using data from frames, and adding to map SerializeMap.
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§
impl<Frames> SerializeViewField<Frames> for Nil
Available on crate feature
serialize only.impl<Frames, Label, FrameIndex, FrameLabel, Tail> SerializeViewField<Frames> for LMCons<Label, FrameDetailMarkers<FrameIndex, FrameLabel>, Tail>where
Frames: SelectFieldFromLabels<Self, Label>,
<Frames as SelectFieldFromLabels<Self, Label>>::Output: Serialize,
Label: LabelName,
Tail: SerializeViewField<Frames>,
Available on crate feature
serialize only.