pub struct Fields<'a, V>(/* private fields */);Expand description
The named fields of a value that has been checked to have them.
A borrow that carries the check with it: crate::contract::object
is the only thing that builds one, so a walk cannot ask an aggregate
question of a value nobody established was an aggregate. That is what
the concrete &serde_json::Map<String, Value> used to do, kept
through the generalisation rather than traded for a bare &V.
Implementations§
Trait Implementations§
impl<V> Copy for Fields<'_, V>
Source§impl<'a, V: Source> IntoIterator for Fields<'a, V>
impl<'a, V: Source> IntoIterator for Fields<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for Fields<'a, V>
impl<'a, V> RefUnwindSafe for Fields<'a, V>where
&'a V: RefUnwindSafe,
impl<'a, V> Send for Fields<'a, V>
impl<'a, V> Sync for Fields<'a, V>
impl<'a, V> Unpin for Fields<'a, V>
impl<'a, V> UnsafeUnpin for Fields<'a, V>where
&'a V: UnsafeUnpin,
impl<'a, V> UnwindSafe for Fields<'a, V>where
&'a V: 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