pub struct Const<'a, T>(/* private fields */);
Expand description
Const is a owned value which is immutable, but also has a lifetime.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Const<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Const<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Const<'a, T>where
T: Send,
impl<'a, T> Sync for Const<'a, T>where
T: Sync,
impl<'a, T> Unpin for Const<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Const<'a, T>where
T: UnwindSafe,
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
Source§impl<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load
.