#[repr(transparent)]pub struct StaticRef<T>(_);
Expand description
A reference to some static value.
Implementations
Trait Implementations
sourceimpl<'borrow, 'scope, S> Deref for StaticRef<&'borrow Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
impl<'borrow, 'scope, S> Deref for StaticRef<&'borrow Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
sourceimpl<'borrow, 'scope, S> Deref for StaticRef<&'borrow mut Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
impl<'borrow, 'scope, S> Deref for StaticRef<&'borrow mut Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
sourceimpl<'borrow, 'scope, S> DerefMut for StaticRef<&'borrow mut Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
impl<'borrow, 'scope, S> DerefMut for StaticRef<&'borrow mut Lease<'scope, S>>where
'scope: 'borrow,
S: Static,
impl<T: Copy> Copy for StaticRef<T>
impl<T> Singleton for StaticRef<T>where
GhostRef<T>: Singleton,
impl<T> Unique for StaticRef<T>where
GhostRef<T>: Unique,
Auto Trait Implementations
impl<T> RefUnwindSafe for StaticRef<T>where
T: RefUnwindSafe,
impl<T> Send for StaticRef<T>where
T: Send,
impl<T> Sync for StaticRef<T>where
T: Sync,
impl<T> Unpin for StaticRef<T>where
T: Unpin,
impl<T> UnwindSafe for StaticRef<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more