pub struct FixedWeight<Sc> { /* private fields */ }Expand description
Public wrapper for fixed score weights that are not one of the built-in score types.
Trait Implementations§
Source§impl<Sc: Clone> Clone for FixedWeight<Sc>
impl<Sc: Clone> Clone for FixedWeight<Sc>
Source§fn clone(&self) -> FixedWeight<Sc>
fn clone(&self) -> FixedWeight<Sc>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Sc: Debug> Debug for FixedWeight<Sc>
impl<Sc: Debug> Debug for FixedWeight<Sc>
Source§impl<Sc: PartialEq> PartialEq for FixedWeight<Sc>
impl<Sc: PartialEq> PartialEq for FixedWeight<Sc>
Source§fn eq(&self, other: &FixedWeight<Sc>) -> bool
fn eq(&self, other: &FixedWeight<Sc>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Sc: Copy> Copy for FixedWeight<Sc>
impl<Sc: Eq> Eq for FixedWeight<Sc>
impl<Sc> StructuralPartialEq for FixedWeight<Sc>
Auto Trait Implementations§
impl<Sc> Freeze for FixedWeight<Sc>where
Sc: Freeze,
impl<Sc> RefUnwindSafe for FixedWeight<Sc>where
Sc: RefUnwindSafe,
impl<Sc> Send for FixedWeight<Sc>where
Sc: Send,
impl<Sc> Sync for FixedWeight<Sc>where
Sc: Sync,
impl<Sc> Unpin for FixedWeight<Sc>where
Sc: Unpin,
impl<Sc> UnsafeUnpin for FixedWeight<Sc>where
Sc: UnsafeUnpin,
impl<Sc> UnwindSafe for FixedWeight<Sc>where
Sc: UnwindSafe,
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