pub enum DispatchTlas {
Core(Arc<CoreTlas>),
Custom(DynTlas),
}
Variants§
Implementations§
Source§impl DispatchTlas
impl DispatchTlas
pub fn as_core(&self) -> &CoreTlas
pub fn as_core_opt(&self) -> Option<&CoreTlas>
pub fn as_custom<T: TlasInterface>(&self) -> Option<&T>
pub fn custom<T: TlasInterface>(t: T) -> Self
Trait Implementations§
Source§impl Clone for DispatchTlas
impl Clone for DispatchTlas
Source§fn clone(&self) -> DispatchTlas
fn clone(&self) -> DispatchTlas
Returns a copy 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 moreSource§impl Debug for DispatchTlas
impl Debug for DispatchTlas
Source§impl Deref for DispatchTlas
impl Deref for DispatchTlas
Source§impl From<CoreTlas> for DispatchTlas
impl From<CoreTlas> for DispatchTlas
Source§impl Hash for DispatchTlas
impl Hash for DispatchTlas
Source§impl Ord for DispatchTlas
impl Ord for DispatchTlas
Source§fn cmp(&self, other: &DispatchTlas) -> Ordering
fn cmp(&self, other: &DispatchTlas) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DispatchTlas
impl PartialEq for DispatchTlas
Source§impl PartialOrd for DispatchTlas
impl PartialOrd for DispatchTlas
impl Eq for DispatchTlas
impl StructuralPartialEq for DispatchTlas
Auto Trait Implementations§
impl Freeze for DispatchTlas
impl !RefUnwindSafe for DispatchTlas
impl Send for DispatchTlas
impl Sync for DispatchTlas
impl Unpin for DispatchTlas
impl !UnwindSafe for DispatchTlas
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more