Struct rkyv::with::Immutable [−][src]
#[repr(transparent)]pub struct Immutable<T: ?Sized>(_);
Expand description
A wrapper to make a type immutable.
Implementations
Trait Implementations
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut C
) -> Result<&'a Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, Mutex<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible + ?Sized,
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, Mutex<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible + ?Sized,
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Immutable<T> where
T: RefUnwindSafe,
impl<T: ?Sized> UnwindSafe for Immutable<T> where
T: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more