pub struct DispatchTable<K, P: ?Sized, R> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<K, P: ?Sized, R> Dispatcher<K, P, R> for DispatchTable<K, P, R>
impl<K, P: ?Sized, R> Dispatcher<K, P, R> for DispatchTable<K, P, R>
fn len(&self) -> usize
fn contains_key<Q>(&self, key: &Q) -> bool
fn remove<Q>(&mut self, key: &Q)
fn insert(&mut self, key: K, item: Box<dyn DispatchFunction<P, R>>)
fn get<Q>(&self, key: &Q) -> Option<&Box<dyn DispatchFunction<P, R>>>
fn into_vec(self) -> Vec<(K, Box<dyn DispatchFunction<P, R>>)>
fn call<Q>(&self, key: &Q, params: &P) -> Option<R>
Auto Trait Implementations§
impl<K, P, R> Freeze for DispatchTable<K, P, R>where
P: ?Sized,
impl<K, P, R> !RefUnwindSafe for DispatchTable<K, P, R>
impl<K, P, R> Send for DispatchTable<K, P, R>
impl<K, P, R> Sync for DispatchTable<K, P, R>
impl<K, P, R> Unpin for DispatchTable<K, P, R>
impl<K, P, R> !UnwindSafe for DispatchTable<K, P, R>
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