pub struct Aggregate<V> { /* private fields */ }Expand description
An aggregate under construction.
The read direction does not build a structure in one go: a
@mutable type is driven by the headers the writer wrote, in
whatever order it wrote them, and the members the stream left out
take their defaults afterwards. So the value is assembled by name,
and the two things the assembly has to answer are whether a member
is already in — §7.4.1.2.3’s defaulting asks it — and whether one
arrived twice, which is a stream this type does not describe.
Insertion order is preserved and a repeat replaces in place, which
is serde_json::Map::insert’s contract and the one the two
@mutable readers were written against.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Aggregate<V>
impl<V> RefUnwindSafe for Aggregate<V>
impl<V> Send for Aggregate<V>
impl<V> Sync for Aggregate<V>
impl<V> Unpin for Aggregate<V>
impl<V> UnsafeUnpin for Aggregate<V>
impl<V> UnwindSafe for Aggregate<V>
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