pub struct ObjectEncoder<'a, 'b> { /* private fields */ }Implementations§
Source§impl<'a, 'b> ObjectEncoder<'a, 'b>
impl<'a, 'b> ObjectEncoder<'a, 'b>
pub fn new( metadata: &'a mut VariantMetadataEncoder<'b>, parent_value_encoder: &'a mut ValueEncoder, ) -> Self
pub fn insert<K, V>(&mut self, field_name: K, variant: V)
pub fn insert_object<K, V>(&'b mut self, field_name: K) -> ObjectEncoder<'b, 'b>
pub fn insert_array<K>(&'b mut self, field_name: K) -> ArrayEncoder<'b, 'b>
pub fn finish(self)
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for ObjectEncoder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for ObjectEncoder<'a, 'b>
impl<'a, 'b> Send for ObjectEncoder<'a, 'b>
impl<'a, 'b> Sync for ObjectEncoder<'a, 'b>
impl<'a, 'b> Unpin for ObjectEncoder<'a, 'b>
impl<'a, 'b> !UnwindSafe for ObjectEncoder<'a, 'b>
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