pub struct FeatureHasherConfig {
pub dimension: usize,
pub seed: u64,
pub signed: bool,
}Expand description
Configuration for FeatureHasher.
Fields§
§dimension: usizeOutput dimension. Must be > 0.
seed: u64Random seed for reproducible hashing.
signed: boolWhether to use signed hashing (alternate sign based on hash bit).
Trait Implementations§
Source§impl Clone for FeatureHasherConfig
impl Clone for FeatureHasherConfig
Source§fn clone(&self) -> FeatureHasherConfig
fn clone(&self) -> FeatureHasherConfig
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 FeatureHasherConfig
impl Debug for FeatureHasherConfig
Auto Trait Implementations§
impl Freeze for FeatureHasherConfig
impl RefUnwindSafe for FeatureHasherConfig
impl Send for FeatureHasherConfig
impl Sync for FeatureHasherConfig
impl Unpin for FeatureHasherConfig
impl UnsafeUnpin for FeatureHasherConfig
impl UnwindSafe for FeatureHasherConfig
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