pub struct WeightedFeature {
pub key: String,
pub weight: u32,
}Expand description
A string feature with an integer weight.
Fields§
§key: String§weight: u32Implementations§
Trait Implementations§
Source§impl Clone for WeightedFeature
impl Clone for WeightedFeature
Source§fn clone(&self) -> WeightedFeature
fn clone(&self) -> WeightedFeature
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 Debug for WeightedFeature
impl Debug for WeightedFeature
impl Eq for WeightedFeature
Source§impl PartialEq for WeightedFeature
impl PartialEq for WeightedFeature
impl StructuralPartialEq for WeightedFeature
Auto Trait Implementations§
impl Freeze for WeightedFeature
impl RefUnwindSafe for WeightedFeature
impl Send for WeightedFeature
impl Sync for WeightedFeature
impl Unpin for WeightedFeature
impl UnsafeUnpin for WeightedFeature
impl UnwindSafe for WeightedFeature
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