pub struct OffStackRef<'a, T>(&'a mut T, BorrowRef<'a>);Expand description
A reference returned by off_stack.
Tuple Fields§
§0: &'a mut T§1: BorrowRef<'a>Implementations§
Trait Implementations§
Source§impl<T> Deref for OffStackRef<'_, T>
impl<T> Deref for OffStackRef<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for OffStackRef<'a, T>
impl<'a, T> !RefUnwindSafe for OffStackRef<'a, T>
impl<'a, T> !Send for OffStackRef<'a, T>
impl<'a, T> !Sync for OffStackRef<'a, T>
impl<'a, T> Unpin for OffStackRef<'a, T>
impl<'a, T> UnsafeUnpin for OffStackRef<'a, T>
impl<'a, T> !UnwindSafe for OffStackRef<'a, T>
Blanket Implementations§
§impl<R> TryRngCore for Rwhere
R: TryRng,
impl<R> TryRngCore for Rwhere
R: TryRng,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<R> Rng for Rwhere
R: TryRng<Error = Infallible> + ?Sized,
impl<R> Rng for Rwhere
R: TryRng<Error = Infallible> + ?Sized,
§impl<R> TryRng for R
impl<R> TryRng for R
§type Error = <<R as Deref>::Target as TryRng>::Error
type Error = <<R as Deref>::Target as TryRng>::Error
The type returned in the event of a RNG error. Read more
§fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
Return the next random
u32.§fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
Return the next random
u64.§fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
Fill
dst entirely with random data.