Struct static_init::raw_static::ConstStatic
source · pub struct ConstStatic<T>(/* private fields */);
Expand description
The actual type of non mutable dynamic statics.
It implements Deref<Target=T>
.
All associated functions are only usefull for the implementation of
the dynamic
proc macro attribute
Implementations§
source§impl<T> ConstStatic<T>
impl<T> ConstStatic<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ConstStatic<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstStatic<T>where
T: RefUnwindSafe,
impl<T> Send for ConstStatic<T>where
T: Send,
impl<T> Sync for ConstStatic<T>where
T: Sync,
impl<T> Unpin for ConstStatic<T>where
T: Unpin,
impl<T> UnwindSafe for ConstStatic<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