pub struct SerializerState<'a> { /* private fields */ }Expand description
The current state of the serializer.
During serializer the SerializerState acts as a communciation device between
the serializable types as the serializer.
Implementations§
Source§impl<'a> SerializerState<'a>
impl<'a> SerializerState<'a>
Sourcepub fn get_mut<T: Default + Debug + 'static>(&self) -> RefMut<'_, T>
pub fn get_mut<T: Default + Debug + 'static>(&self) -> RefMut<'_, T>
Returns a mutable extension value.
Sourcepub fn top_descriptor(&self) -> Option<&dyn Descriptor>
pub fn top_descriptor(&self) -> Option<&dyn Descriptor>
Returns the topmost descriptor.
This descriptor always points to a container as the descriptor of a value itself will always be passed to the callback explicitly.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for SerializerState<'a>
impl<'a> !RefUnwindSafe for SerializerState<'a>
impl<'a> !Send for SerializerState<'a>
impl<'a> !Sync for SerializerState<'a>
impl<'a> Unpin for SerializerState<'a>
impl<'a> !UnwindSafe for SerializerState<'a>
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