pub enum DispatchReason {
Explicit,
Preference,
ShapeMatch(i32),
ClassMatch,
UniversalDefault,
}Expand description
Why the dispatcher chose a lens.
Variants§
Explicit
Selected by explicit operator choice.
Preference
Selected by saved workspace preference.
ShapeMatch(i32)
Selected as the best Shape match, with the winning match score.
ClassMatch
Selected by class-match fallback.
UniversalDefault
Selected as the universal default.
Trait Implementations§
Source§impl Clone for DispatchReason
impl Clone for DispatchReason
Source§fn clone(&self) -> DispatchReason
fn clone(&self) -> DispatchReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchReason
impl Debug for DispatchReason
impl Eq for DispatchReason
Source§impl PartialEq for DispatchReason
impl PartialEq for DispatchReason
Source§fn eq(&self, other: &DispatchReason) -> bool
fn eq(&self, other: &DispatchReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchReason
Auto Trait Implementations§
impl Freeze for DispatchReason
impl RefUnwindSafe for DispatchReason
impl Send for DispatchReason
impl Sync for DispatchReason
impl Unpin for DispatchReason
impl UnsafeUnpin for DispatchReason
impl UnwindSafe for DispatchReason
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