Struct rstar::DefaultParams
source · pub struct DefaultParams;
Expand description
The default parameters used when creating an r-tree without specific parameters.
Trait Implementations§
source§impl Clone for DefaultParams
impl Clone for DefaultParams
source§fn clone(&self) -> DefaultParams
fn clone(&self) -> DefaultParams
Returns a copy 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 PartialEq<DefaultParams> for DefaultParams
impl PartialEq<DefaultParams> for DefaultParams
source§fn eq(&self, other: &DefaultParams) -> bool
fn eq(&self, other: &DefaultParams) -> bool
source§impl RTreeParams for DefaultParams
impl RTreeParams for DefaultParams
source§const MIN_SIZE: usize = 3usize
const MIN_SIZE: usize = 3usize
The minimum size of an internal node. Must be at most half as large as
MAX_SIZE
.
Choosing a value around one half or one third of MAX_SIZE
is recommended. Higher
values should yield slightly better tree quality while lower values may benefit
insertion performance. Read moresource§const MAX_SIZE: usize = 6usize
const MAX_SIZE: usize = 6usize
The maximum size of an internal node. Larger values will improve insertion performance
but increase the average query time. Read more
source§const REINSERTION_COUNT: usize = 2usize
const REINSERTION_COUNT: usize = 2usize
The number of nodes that the insertion strategy tries to occasionally reinsert to
maintain a good tree quality. Must be smaller than
MAX_SIZE
- MIN_SIZE
.
Larger values will improve query times but increase insertion time. Read more§type DefaultInsertionStrategy = RStarInsertionStrategy
type DefaultInsertionStrategy = RStarInsertionStrategy
The insertion strategy which is used when calling RTree::insert.