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