pub struct MapSlice<K, V>(/* private fields */);
Expand description
An adapter that streams a slice of key-value pairs as a map.
Implementations§
Trait Implementations§
source§impl<K: Value, V: Value> Value for MapSlice<K, V>
impl<K: Value, V: Value> Value for MapSlice<K, V>
source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S ) -> Result
Stream this value through a
Stream
.source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.