pub struct ZeroWeightScale;Expand description
A scale that always return 0.
Trait Implementations§
Source§impl Clone for ZeroWeightScale
impl Clone for ZeroWeightScale
Source§fn clone(&self) -> ZeroWeightScale
fn clone(&self) -> ZeroWeightScale
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 ZeroWeightScale
impl Debug for ZeroWeightScale
Source§impl Default for ZeroWeightScale
impl Default for ZeroWeightScale
Source§fn default() -> ZeroWeightScale
fn default() -> ZeroWeightScale
Returns the “default value” for a type. Read more
Source§impl<K, V> WeightScale<K, V> for ZeroWeightScale
impl<K, V> WeightScale<K, V> for ZeroWeightScale
impl Copy for ZeroWeightScale
Auto Trait Implementations§
impl Freeze for ZeroWeightScale
impl RefUnwindSafe for ZeroWeightScale
impl Send for ZeroWeightScale
impl Sync for ZeroWeightScale
impl Unpin for ZeroWeightScale
impl UnwindSafe for ZeroWeightScale
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