[−][src]Struct prodash::TreeOptions
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
Methods
impl TreeOptions
[src]
Trait Implementations
impl Clone for TreeOptions
[src]
fn clone(&self) -> TreeOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TreeOptions
[src]
impl Default for TreeOptions
[src]
impl From<TreeOptions> for Tree
[src]
fn from(
TreeOptions { initial_capacity: initial_capacity, message_buffer_capacity: message_buffer_capacity }: TreeOptions
) -> Self
[src]
TreeOptions { initial_capacity: initial_capacity, message_buffer_capacity: message_buffer_capacity }: TreeOptions
) -> Self
Auto Trait Implementations
impl RefUnwindSafe for TreeOptions
impl Send for TreeOptions
impl Sync for TreeOptions
impl Unpin for TreeOptions
impl UnwindSafe for TreeOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,