Struct rkyv::with::Immutable [−][src]
#[repr(transparent)]pub struct Immutable<T: ?Sized>(_);
Expand description
A wrapper to make a type immutable.
Implementations
Trait Implementations
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, Mutex<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible,
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, Mutex<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible,
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, RwLock<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible,
impl<F, T, D: ?Sized> DeserializeWith<Immutable<F>, RwLock<T>, D> for Lock where
F: Deserialize<T, D>,
D: Fallible,
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
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,