Struct prodash::TreeOptions [−][src]
Expand description
A way to configure new tree::Root
instances
use prodash::{Tree, TreeOptions};
let tree = TreeOptions::default().create();
let tree2 = TreeOptions { message_buffer_capacity: 100, ..TreeOptions::default() }.create();
Fields
initial_capacity: usize
The amount of items the tree can hold without being forced to allocate
message_buffer_capacity: usize
The amount of messages we can hold before we start overwriting old ones
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more