pub struct CollectionWrapper { /* private fields */ }Expand description
A collection that is not a list, which the deserializer fills.
Trait Implementations§
Source§impl BaseWrapper for CollectionWrapper
impl BaseWrapper for CollectionWrapper
Source§fn collection(&mut self) -> Value
fn collection(&mut self) -> Value
The collection that was filled. The wrapper is empty afterwards.
fn add(&mut self, value: Value) -> Result<(), Error>
fn create_container(&self, _ty: &Type, _item_type: &Type) -> Option<Value>
fn set_container(&mut self, container: Option<Value>) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for CollectionWrapper
impl !UnwindSafe for CollectionWrapper
impl Freeze for CollectionWrapper
impl Send for CollectionWrapper
impl Sync for CollectionWrapper
impl Unpin for CollectionWrapper
impl UnsafeUnpin for CollectionWrapper
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