Struct rkyv::Infallible
source · [−]pub struct Infallible;
Expand description
A fallible type that cannot produce errors.
This type can be used to serialize and deserialize types that cannot fail to serialize or deserialize.
Trait Implementations
sourceimpl Debug for Infallible
impl Debug for Infallible
sourceimpl Default for Infallible
impl Default for Infallible
sourceimpl Fallible for Infallible
impl Fallible for Infallible
type Error = Infallible
type Error = Infallible
The error produced by any failing methods.
Auto Trait Implementations
impl RefUnwindSafe for Infallible
impl Send for Infallible
impl Sync for Infallible
impl Unpin for Infallible
impl UnwindSafe for Infallible
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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