pub struct SingletonMut<'a, 'slf, T, L, B> { /* private fields */ }Expand description
A mutable reference handle to a singleton, resolves to &mut T at runtime.
Created via Singleton::by_mut().
Trait Implementations§
Source§impl<T, L, B> Clone for SingletonMut<'_, '_, T, L, B>
impl<T, L, B> Clone for SingletonMut<'_, '_, T, L, B>
impl<T, L, B> Copy for SingletonMut<'_, '_, T, L, B>
Source§impl<'a, 'slf, T: 'a, L, B> FreeVariableWithContextWithProps<OperatorContext<L, B>, ()> for SingletonMut<'a, 'slf, T, L, B>where
L: Location<'a>,
impl<'a, 'slf, T: 'a, L, B> FreeVariableWithContextWithProps<OperatorContext<L, B>, ()> for SingletonMut<'a, 'slf, T, L, B>where
L: Location<'a>,
Auto Trait Implementations§
impl<'a, 'slf, T, L, B> !RefUnwindSafe for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> !Send for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> !Sync for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> !UnwindSafe for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> Freeze for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> Unpin for SingletonMut<'a, 'slf, T, L, B>
impl<'a, 'slf, T, L, B> UnsafeUnpin for SingletonMut<'a, 'slf, T, L, B>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.