pub enum OnceState {
NotCalled = 0,
Called = 1,
}Expand description
OnceState is used to indicate whether the Once has been called or not.
§Variants
NotCalled- TheOncehas not been called.Called- TheOncehas been called.
Variants§
Implementations§
Trait Implementations§
impl Copy for OnceState
impl Eq for OnceState
impl StructuralPartialEq for OnceState
Auto Trait Implementations§
impl Freeze for OnceState
impl RefUnwindSafe for OnceState
impl Send for OnceState
impl Sync for OnceState
impl Unpin for OnceState
impl UnsafeUnpin for OnceState
impl UnwindSafe for OnceState
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