pub struct UnitWeighter;Expand description
Each cache entry weights exactly 1 unit of weight.
Trait Implementations§
Source§impl Clone for UnitWeighter
impl Clone for UnitWeighter
Source§fn clone(&self) -> UnitWeighter
fn clone(&self) -> UnitWeighter
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 UnitWeighter
impl Debug for UnitWeighter
Source§impl Default for UnitWeighter
impl Default for UnitWeighter
Source§fn default() -> UnitWeighter
fn default() -> UnitWeighter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnitWeighter
impl RefUnwindSafe for UnitWeighter
impl Send for UnitWeighter
impl Sync for UnitWeighter
impl Unpin for UnitWeighter
impl UnwindSafe for UnitWeighter
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