pub struct SubtreeConfig {
pub min_samples_for_sharing: usize,
pub max_shared_depth: usize,
pub min_pattern_frequency: usize,
pub enabled: bool,
}Expand description
Configuration for shared subtree optimization
Fields§
§min_samples_for_sharing: usizeMinimum number of samples in a subtree to consider sharing
Maximum depth of subtrees to share
min_pattern_frequency: usizeMinimum frequency of pattern to justify sharing
enabled: boolEnable/disable subtree sharing
Trait Implementations§
Source§impl Clone for SubtreeConfig
impl Clone for SubtreeConfig
Source§fn clone(&self) -> SubtreeConfig
fn clone(&self) -> SubtreeConfig
Returns a duplicate 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 moreSource§impl Debug for SubtreeConfig
impl Debug for SubtreeConfig
Auto Trait Implementations§
impl Freeze for SubtreeConfig
impl RefUnwindSafe for SubtreeConfig
impl Send for SubtreeConfig
impl Sync for SubtreeConfig
impl Unpin for SubtreeConfig
impl UnwindSafe for SubtreeConfig
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> 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