#[non_exhaustive]pub struct FeatureHasherConfig {
pub dimension: usize,
pub seed: u64,
pub signed: bool,
}Expand description
Configuration for FeatureHasher.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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