pub enum TypeLoaderPriority {
Core,
Generated,
Dynamic(u32),
Fallback,
}Expand description
Priority of the given type loader. Type loaders should be sorted by this value, to ensure that correct implementations are selected if multiple type loaders handle the same type.
Variants§
Core
Reserved for the core namespace.
Generated
Any generated type loader.
Dynamic(u32)
Some form of dynamic type loader, can specify a custom priority greater than 1.
Fallback
Fallback, will always be sorted last.
Implementations§
Trait Implementations§
Source§impl Clone for TypeLoaderPriority
impl Clone for TypeLoaderPriority
Source§fn clone(&self) -> TypeLoaderPriority
fn clone(&self) -> TypeLoaderPriority
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 moreSource§impl Debug for TypeLoaderPriority
impl Debug for TypeLoaderPriority
Source§impl Ord for TypeLoaderPriority
impl Ord for TypeLoaderPriority
Source§impl PartialEq for TypeLoaderPriority
impl PartialEq for TypeLoaderPriority
Source§impl PartialOrd for TypeLoaderPriority
impl PartialOrd for TypeLoaderPriority
impl Copy for TypeLoaderPriority
impl Eq for TypeLoaderPriority
impl StructuralPartialEq for TypeLoaderPriority
Auto Trait Implementations§
impl Freeze for TypeLoaderPriority
impl RefUnwindSafe for TypeLoaderPriority
impl Send for TypeLoaderPriority
impl Sync for TypeLoaderPriority
impl Unpin for TypeLoaderPriority
impl UnwindSafe for TypeLoaderPriority
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.