pub struct Immutable<T: ?Sized>(/* private fields */);
Expand description
Provides only an immutable reference to the contained type T.
Used for FFI types to avoid having separate variants depending on mutability.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Immutable<T>
impl<T> RefUnwindSafe for Immutable<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Immutable<T>
impl<T> Sync for Immutable<T>
impl<T> Unpin for Immutable<T>
impl<T> UnwindSafe for Immutable<T>where
T: UnwindSafe + ?Sized,
Blanket Implementations§
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