#[repr(transparent)]pub struct Lease<'scope, S: Static>(_);
Expand description
A lease on a static memory location for a statically-checked lifetime.
Implementations
Trait Implementations
impl<'scope, S: Static> Unique for Lease<'scope, S>where
GhostRef<&'scope mut S::Unique>: Unique,
Auto Trait Implementations
impl<'scope, S> RefUnwindSafe for Lease<'scope, S>where
<S as Static>::Unique: RefUnwindSafe,
impl<'scope, S> Send for Lease<'scope, S>where
<S as Static>::Unique: Send,
impl<'scope, S> Sync for Lease<'scope, S>where
<S as Static>::Unique: Sync,
impl<'scope, S> Unpin for Lease<'scope, S>
impl<'scope, S> !UnwindSafe for Lease<'scope, S>
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