pub struct Once { /* private fields */ }
Expand description
A predicate used to execute a closure only once for the lifetime of an application.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Once
impl !RefUnwindSafe for Once
impl Send for Once
impl Unpin for Once
impl UnwindSafe for Once
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