Struct deser_path::PathSink
source · [−]pub struct PathSink<'a> { /* private fields */ }Expand description
A path sink tracks the current path during deserialization.
Implementations
Trait Implementations
sourceimpl<'a> Sink for PathSink<'a>
impl<'a> Sink for PathSink<'a>
fn atom(
&mut self,
atom: Atom<'_>,
state: &DeserializerState<'_>
) -> Result<(), Error>
fn map(
&mut self,
state: &DeserializerState<'_>
) -> Result<Box<dyn MapSink>, Error>
fn seq(
&mut self,
state: &DeserializerState<'_>
) -> Result<Box<dyn SeqSink>, Error>
fn expecting(&self) -> Cow<'_, str>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PathSink<'a>
impl<'a> !Send for PathSink<'a>
impl<'a> !Sync for PathSink<'a>
impl<'a> Unpin for PathSink<'a>
impl<'a> !UnwindSafe for PathSink<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more