pub struct Static<T>(/* private fields */);Expand description
A zero-sized owner of a type’s immutable text constant.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Static<T>
impl<T: Eq> Eq for Static<T>
impl<T: PartialEq> StructuralPartialEq for Static<T>
Auto Trait Implementations§
impl<T> Freeze for Static<T>
impl<T> RefUnwindSafe for Static<T>
impl<T> Send for Static<T>
impl<T> Sync for Static<T>
impl<T> Unpin for Static<T>
impl<T> UnsafeUnpin for Static<T>
impl<T> UnwindSafe for Static<T>
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