#[non_exhaustive]pub enum Modifier {
Jump,
SuperJump,
JumpCancel,
Close,
Far,
TigerKnee,
None,
}Expand description
A numpad notation modifier
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 Modifier
impl Modifier
Sourcepub fn new<S>(m: S) -> Result<Self, CreationError>where
S: ToString,
pub fn new<S>(m: S) -> Result<Self, CreationError>where
S: ToString,
Create a Modifier from something that can be represented
as a string
Returns a CreationError if the provided prefix cannot
be matched to a valid modifier
Trait Implementations§
impl Copy for Modifier
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
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