#[non_exhaustive]pub enum AffordanceAxis {
Density,
Size,
}Expand description
The axis an Affordance reads: the input class or the screen budget.
Every member reads exactly one. #[non_exhaustive] because a member that
genuinely read both would be added here as a third answer, and
no_member_reads_both_axes is where that claim would be withdrawn.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for AffordanceAxis
impl Clone for AffordanceAxis
impl Copy for AffordanceAxis
Source§impl Debug for AffordanceAxis
impl Debug for AffordanceAxis
impl Eq for AffordanceAxis
Source§impl Hash for AffordanceAxis
impl Hash for AffordanceAxis
Source§impl PartialEq for AffordanceAxis
impl PartialEq for AffordanceAxis
impl StructuralPartialEq for AffordanceAxis
Auto Trait Implementations§
impl Forget for AffordanceAxis
impl Freeze for AffordanceAxis
impl Move for AffordanceAxis
impl RefUnwindSafe for AffordanceAxis
impl Send for AffordanceAxis
impl Sync for AffordanceAxis
impl Unpin for AffordanceAxis
impl UnsafeUnpin for AffordanceAxis
impl UnwindSafe for AffordanceAxis
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