Struct deser_path::PathSerializable
source · [−]pub struct PathSerializable<'a> { /* private fields */ }Expand description
Wraps a serializable so that it tracks the current path.
Implementations
sourceimpl<'a> PathSerializable<'a>
impl<'a> PathSerializable<'a>
sourcepub fn wrap(serializable: &'a dyn Serialize) -> PathSerializable<'a>
pub fn wrap(serializable: &'a dyn Serialize) -> PathSerializable<'a>
Wraps another serializable.
sourcepub fn wrap_ref(serializable: SerializeHandle<'a>) -> PathSerializable<'a>
pub fn wrap_ref(serializable: SerializeHandle<'a>) -> PathSerializable<'a>
Wraps another serializable ref.
Trait Implementations
sourceimpl<'a> Serialize for PathSerializable<'a>
impl<'a> Serialize for PathSerializable<'a>
sourcefn serialize(&self, state: &SerializerState<'_>) -> Result<Chunk<'_>, Error>
fn serialize(&self, state: &SerializerState<'_>) -> Result<Chunk<'_>, Error>
Serializes this serializable.
sourcefn finish(&self, state: &SerializerState<'_>) -> Result<(), Error>
fn finish(&self, state: &SerializerState<'_>) -> Result<(), Error>
Invoked after the serialization finished. Read more
sourcefn descriptor(&self) -> &dyn Descriptor
fn descriptor(&self) -> &dyn Descriptor
Returns the descriptor of this serializable if it exists.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PathSerializable<'a>
impl<'a> !Send for PathSerializable<'a>
impl<'a> !Sync for PathSerializable<'a>
impl<'a> Unpin for PathSerializable<'a>
impl<'a> !UnwindSafe for PathSerializable<'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