pub struct DiscriminationTree<S, T> { /* private fields */ }
Implementations§
Source§impl<S: Symbol, T> DiscriminationTree<S, T>
impl<S: Symbol, T> DiscriminationTree<S, T>
pub fn get_or_insert_with<I: IntoIterator<Item = Option<S>>, F: FnOnce() -> T>( &mut self, key: I, insert: F, ) -> &mut T
pub fn query<I: IntoIterator<Item = Option<S>>>( &self, key: I, generalise: bool, instantiate: bool, ) -> impl Iterator<Item = &T>
Trait Implementations§
Source§impl<S: Clone, T: Clone> Clone for DiscriminationTree<S, T>
impl<S: Clone, T: Clone> Clone for DiscriminationTree<S, T>
Source§fn clone(&self) -> DiscriminationTree<S, T>
fn clone(&self) -> DiscriminationTree<S, T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<S, T> Freeze for DiscriminationTree<S, T>
impl<S, T> RefUnwindSafe for DiscriminationTree<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for DiscriminationTree<S, T>
impl<S, T> Sync for DiscriminationTree<S, T>
impl<S, T> Unpin for DiscriminationTree<S, T>
impl<S, T> UnwindSafe for DiscriminationTree<S, T>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more