pub struct SingletonEnv<EnvType> { /* private fields */ }Expand description
| Wraps an Env instance whose destructor
| is never created.
|
| Intended usage:
|
| ———–
| @code
|
| using PlatformSingletonEnv = SingletonEnv
Implementations§
Source§impl<EnvType> SingletonEnv<EnvType>
impl<EnvType> SingletonEnv<EnvType>
Trait Implementations§
Auto Trait Implementations§
impl<EnvType> Freeze for SingletonEnv<EnvType>
impl<EnvType> RefUnwindSafe for SingletonEnv<EnvType>where
EnvType: RefUnwindSafe,
impl<EnvType> Send for SingletonEnv<EnvType>where
EnvType: Send,
impl<EnvType> Sync for SingletonEnv<EnvType>where
EnvType: Sync,
impl<EnvType> Unpin for SingletonEnv<EnvType>where
EnvType: Unpin,
impl<EnvType> UnwindSafe for SingletonEnv<EnvType>where
EnvType: UnwindSafe,
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