Struct stati::BarWrapper
source · [−]pub struct BarWrapper<B: IsBar>(_);
Expand description
a wrapper around a Bar
, allowing the manager to keep a copy while
passing one to the user
when this is dropped, done()
should be called,
however it does not check if it succedded or not to avoid panicking,
so it may not have been called. if you want to check this, call done()
manually
Trait Implementations
sourceimpl<B: Clone + IsBar> Clone for BarWrapper<B>
impl<B: Clone + IsBar> Clone for BarWrapper<B>
sourcefn clone(&self) -> BarWrapper<B>
fn clone(&self) -> BarWrapper<B>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<B: Debug + IsBar> Debug for BarWrapper<B>
impl<B: Debug + IsBar> Debug for BarWrapper<B>
sourceimpl<B: IsBar> Drop for BarWrapper<B>
impl<B: IsBar> Drop for BarWrapper<B>
sourceimpl<B: IsBar> IsBarWrapper for BarWrapper<B>
impl<B: IsBar> IsBarWrapper for BarWrapper<B>
Auto Trait Implementations
impl<B> !RefUnwindSafe for BarWrapper<B>
impl<B> !Send for BarWrapper<B>
impl<B> !Sync for BarWrapper<B>
impl<B> Unpin for BarWrapper<B>
impl<B> !UnwindSafe for BarWrapper<B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more