#[repr(C)]pub struct FeatureNode {
pub index: i32,
pub value: f64,
}
Expand description
Represents a single feature in a sparse feature vector.
Fields§
§index: i32
One-based index of the feature in the feature vector.
value: f64
Value corresponding to the feature.
Trait Implementations§
Source§impl Clone for FeatureNode
impl Clone for FeatureNode
Source§fn clone(&self) -> FeatureNode
fn clone(&self) -> FeatureNode
Returns a copy 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 moreimpl Copy for FeatureNode
Auto Trait Implementations§
impl Freeze for FeatureNode
impl RefUnwindSafe for FeatureNode
impl Send for FeatureNode
impl Sync for FeatureNode
impl Unpin for FeatureNode
impl UnwindSafe for FeatureNode
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