#[non_exhaustive]#[repr(u8)]pub enum ActivityLevel {
Low = 0,
Medium = 1,
High = 2,
}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.
Implementations§
Source§impl ActivityLevel
impl ActivityLevel
Trait Implementations§
Source§impl Clone for ActivityLevel
impl Clone for ActivityLevel
Source§fn clone(&self) -> ActivityLevel
fn clone(&self) -> ActivityLevel
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 ActivityLevel
impl Debug for ActivityLevel
Source§impl Hash for ActivityLevel
impl Hash for ActivityLevel
Source§impl PartialEq for ActivityLevel
impl PartialEq for ActivityLevel
Source§fn eq(&self, other: &ActivityLevel) -> bool
fn eq(&self, other: &ActivityLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActivityLevel
impl Eq for ActivityLevel
impl StructuralPartialEq for ActivityLevel
Auto Trait Implementations§
impl Freeze for ActivityLevel
impl RefUnwindSafe for ActivityLevel
impl Send for ActivityLevel
impl Sync for ActivityLevel
impl Unpin for ActivityLevel
impl UnsafeUnpin for ActivityLevel
impl UnwindSafe for ActivityLevel
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