pub struct Static<T> { /* private fields */ }Implementations§
Source§impl<T> Static<T>
impl<T> Static<T>
pub const fn new() -> Self
pub fn try_own(&self) -> Option<StaticOwned<'_, T>>where
T: Default,
pub fn try_own_uninit(&self) -> Option<StaticOwned<'_, T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Static<T>
impl<T> !RefUnwindSafe for Static<T>
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