pub struct Values<W>(/* private fields */);Expand description
An object of any keys, each value through W.
Trait Implementations§
Source§impl<F, W: With<F>> With<BTreeMap<String, F>> for Values<W>
impl<F, W: With<F>> With<BTreeMap<String, F>> for Values<W>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<BTreeMap<String, F>>
fn write(f: &BTreeMap<String, F>) -> Value
Source§fn encode(f: &F, w: &mut Writer)
fn encode(f: &F, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn decode(d: &mut Decoder<'_>) -> Option<F>
fn decode(d: &mut Decoder<'_>) -> Option<F>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Source§impl<F, W: With<F>> With<HashMap<String, F>> for Values<W>
impl<F, W: With<F>> With<HashMap<String, F>> for Values<W>
fn shape() -> Shape
fn read(v: &ValueRef<'_>, cx: &mut Reader<'_>) -> Option<HashMap<String, F>>
fn write(f: &HashMap<String, F>) -> Value
Source§fn encode(f: &F, w: &mut Writer)
fn encode(f: &F, w: &mut Writer)
The field in the binary form, straight: its value encoded unless
the codec knows better.
Source§fn decode(d: &mut Decoder<'_>) -> Option<F>
fn decode(d: &mut Decoder<'_>) -> Option<F>
The field from the binary form, straight;
None sends the read the
slow way (see Schema::decode).Auto Trait Implementations§
impl<W> Freeze for Values<W>where
PhantomData<W>: Freeze,
impl<W> RefUnwindSafe for Values<W>where
PhantomData<W>: RefUnwindSafe,
impl<W> Send for Values<W>where
PhantomData<W>: Send,
impl<W> Sync for Values<W>where
PhantomData<W>: Sync,
impl<W> Unpin for Values<W>where
PhantomData<W>: Unpin,
impl<W> UnsafeUnpin for Values<W>where
PhantomData<W>: UnsafeUnpin,
impl<W> UnwindSafe for Values<W>where
PhantomData<W>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more