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§
source§impl Debug for Infallible
impl Debug for Infallible
source§impl Default for Infallible
impl Default for Infallible
source§impl Fallible for Infallible
impl Fallible for Infallible
§type Error = Infallible
type Error = Infallible
The error produced by any failing methods.
Auto Trait Implementations§
impl Freeze for Infallible
impl RefUnwindSafe for Infallible
impl Send for Infallible
impl Sync for Infallible
impl Unpin for Infallible
impl UnwindSafe for Infallible
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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