pub trait StreamRecord<'sval> {
type Ok;
// Required methods
fn value_computed<V: Value>(
&mut self,
tag: Option<Tag>,
label: Label<'_>,
value: V,
) -> Result;
fn end(self) -> Result<Self::Ok>;
// Provided methods
fn value<V: ValueRef<'sval>>(
&mut self,
tag: Option<Tag>,
label: Label<'_>,
value: V,
) -> Result { ... }
fn value_ref<V: Value + ?Sized>(
&mut self,
tag: Option<Tag>,
label: Label<'_>,
value: &'sval V,
) -> Result { ... }
}
Expand description
A stream for a record.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.