[−][src]Struct zdd::factory::FactoryBuilder
A factory for Factory
to set the capacity of the consign and the caches.
Example
Each initial capacity can be set separately.
use zdd::FactoryBuilder ; let factory = FactoryBuilder::mk() .consign_len(1) .count_cache_len(2) .offset_cache_len(3).onset_cache_len(4).change_cache_len(5) .union_cache_len(6).inter_cache_len(7).minus_cache_len(8) .build::<usize>() ;
Or at the same time.
use zdd::FactoryBuilder ; let factory = FactoryBuilder::mk().len(7).build::<usize>() ;
It is also possible to set all the caches capacities at once.
use zdd::FactoryBuilder ; let factory = FactoryBuilder::mk().caches_len(7).build::<usize>() ;
Methods
impl FactoryBuilder
[src]
pub fn build<Label: Eq + Hash + Clone>(self) -> Factory<Label>
[src]
Builds a factory with the corresponding capacities.
pub fn build_arc<Label: Eq + Hash + Clone>(self) -> Arc<Factory<Label>>
[src]
Builds an Arc of a factory with the corresponding capacities.
pub fn mk() -> Self
[src]
Creates a new factory builder with all capacities equal to zero.
pub fn len(self, l: usize) -> Self
[src]
Sets the capacities of the consign and all the caches at once.
pub fn consign_len(self, l: usize) -> Self
[src]
Sets the capacity of the consign.
pub fn caches_len(self, l: usize) -> Self
[src]
Sets the capacities of all the caches at once.
pub fn count_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the count cache.
pub fn offset_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the offset cache.
pub fn onset_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the onset cache.
pub fn change_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the change cache.
pub fn union_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the union cache.
pub fn inter_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the inter cache.
pub fn minus_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the minus cache.
pub fn subset_cache_len(self, l: usize) -> Self
[src]
Sets the capacity of the minus cache.
Auto Trait Implementations
impl RefUnwindSafe for FactoryBuilder
impl Send for FactoryBuilder
impl Sync for FactoryBuilder
impl Unpin for FactoryBuilder
impl UnwindSafe for FactoryBuilder
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,