Struct redo::GroupBuilder
[−]
[src]
pub struct GroupBuilder<'a, K: Hash + Eq, V, S = RandomState> where
S: BuildHasher, { /* fields omitted */ }
Builder for a group.
Methods
impl<'a, K: Hash + Eq, V> GroupBuilder<'a, K, V, RandomState>
[src]
pub fn build(self) -> Group<'a, K, V, RandomState>
[src]
Creates the group.
impl<'a, K: Hash + Eq, V, S: BuildHasher> GroupBuilder<'a, K, V, S>
[src]
pub fn capacity(self, capacity: usize) -> GroupBuilder<'a, K, V, S>
[src]
Sets the specified capacity for the group.
pub fn signals<F>(self, f: F) -> GroupBuilder<'a, K, V, S> where
F: FnMut(Option<&K>) + Send + Sync + 'a,
[src]
F: FnMut(Option<&K>) + Send + Sync + 'a,
Decides what should happen when the active stack changes.
Examples
Group::builder() .signals(|k| match k { Some(k) => println!("The new active stack is {}.", k), None => println!("No active stack."), }) .build();
pub fn build_with_hasher(self, hasher: S) -> Group<'a, K, V, S>
[src]
Creates the group with the given hasher.
Trait Implementations
impl<'a, K: Hash + Eq, V, S: BuildHasher> Debug for GroupBuilder<'a, K, V, S>
[src]
Auto Trait Implementations
impl<'a, K, V, S> Send for GroupBuilder<'a, K, V, S> where
K: Send,
S: Send,
V: Send,
K: Send,
S: Send,
V: Send,
impl<'a, K, V, S> Sync for GroupBuilder<'a, K, V, S> where
K: Sync,
S: Sync,
V: Sync,
K: Sync,
S: Sync,
V: Sync,