pub struct AutoMergingConfig {
pub merge_threshold: f32,
pub leaf_chunk_size: usize,
pub parent_chunk_size: usize,
pub leaves_per_parent: usize,
}Expand description
AutoMerging 配置
Fields§
§merge_threshold: f32§leaf_chunk_size: usize§parent_chunk_size: usize§leaves_per_parent: usizeImplementations§
Source§impl AutoMergingConfig
impl AutoMergingConfig
pub fn new() -> Self
pub fn with_threshold(self, threshold: f32) -> Self
pub fn with_leaf_size(self, size: usize) -> Self
pub fn with_parent_size(self, size: usize) -> Self
Trait Implementations§
Source§impl Clone for AutoMergingConfig
impl Clone for AutoMergingConfig
Source§fn clone(&self) -> AutoMergingConfig
fn clone(&self) -> AutoMergingConfig
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 AutoMergingConfig
impl Debug for AutoMergingConfig
Source§impl Default for AutoMergingConfig
impl Default for AutoMergingConfig
Source§impl<'de> Deserialize<'de> for AutoMergingConfig
impl<'de> Deserialize<'de> for AutoMergingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AutoMergingConfig
impl RefUnwindSafe for AutoMergingConfig
impl Send for AutoMergingConfig
impl Sync for AutoMergingConfig
impl Unpin for AutoMergingConfig
impl UnsafeUnpin for AutoMergingConfig
impl UnwindSafe for AutoMergingConfig
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