pub struct FeatureGroup {
pub features: Vec<usize>,
pub row_stride: u32,
pub hist_offset: u32,
pub total_bins: u32,
pub data: Vec<u8>,
}Fields§
§features: Vec<usize>Indices into BinnedDataset::features, in column order.
row_stride: u32Bytes per row: the feature count rounded up to a multiple of 4, padding bytes zero.
hist_offset: u32Index of the group’s first bin in the flat histogram; a group’s bins are contiguous there.
total_bins: u32§data: Vec<u8>Row-major bins: data[row * row_stride + column].
Trait Implementations§
Source§impl Clone for FeatureGroup
impl Clone for FeatureGroup
Source§impl Debug for FeatureGroup
impl Debug for FeatureGroup
Source§impl PartialEq for FeatureGroup
impl PartialEq for FeatureGroup
impl StructuralPartialEq for FeatureGroup
Auto Trait Implementations§
impl Forget for FeatureGroup
impl Freeze for FeatureGroup
impl Move for FeatureGroup
impl RefUnwindSafe for FeatureGroup
impl Send for FeatureGroup
impl Sync for FeatureGroup
impl Unpin for FeatureGroup
impl UnsafeUnpin for FeatureGroup
impl UnwindSafe for FeatureGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more