pub struct ResetNothing;Expand description
Implements ResetResource with a no-op. Can be used when a Resource does not need to be
reset when it is returned to a pool.
Trait Implementations§
Source§impl Clone for ResetNothing
impl Clone for ResetNothing
Source§fn clone(&self) -> ResetNothing
fn clone(&self) -> ResetNothing
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResetNothing
impl Debug for ResetNothing
Source§impl<S: Speed> DeepClone<S> for ResetNothing
Available on crate feature clone-behavior only.
impl<S: Speed> DeepClone<S> for ResetNothing
Available on crate feature
clone-behavior only.Source§fn deep_clone(&self) -> Self
fn deep_clone(&self) -> Self
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§fn fast_deep_clone(&self) -> Selfwhere
S: FastSpeed,
fn fast_deep_clone(&self) -> Selfwhere
S: FastSpeed,
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§impl Default for ResetNothing
impl Default for ResetNothing
Source§fn default() -> ResetNothing
fn default() -> ResetNothing
Returns the “default value” for a type. Read more
Source§impl<S: Speed> MirroredClone<S> for ResetNothing
Available on crate feature clone-behavior only.
impl<S: Speed> MirroredClone<S> for ResetNothing
Available on crate feature
clone-behavior only.Source§fn mirrored_clone(&self) -> Self
fn mirrored_clone(&self) -> Self
Get a clone that shares all semantically-important mutable state with its source. Read more
Source§fn fast_mirrored_clone(&self) -> Selfwhere
S: FastSpeed,
fn fast_mirrored_clone(&self) -> Selfwhere
S: FastSpeed,
Get a clone that shares all semantically-important mutable state with its source. Read more
Source§impl<Resource> ResetResource<Resource> for ResetNothing
impl<Resource> ResetResource<Resource> for ResetNothing
Source§fn reset(&self, _resource: &mut Resource)
fn reset(&self, _resource: &mut Resource)
Do nothing to reset the resource.
impl Copy for ResetNothing
Auto Trait Implementations§
impl Freeze for ResetNothing
impl RefUnwindSafe for ResetNothing
impl Send for ResetNothing
impl Sync for ResetNothing
impl Unpin for ResetNothing
impl UnwindSafe for ResetNothing
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