#[non_exhaustive]pub enum ArgShape {
OneValue,
OneString,
TwoStrings,
TwoInts,
OneNumber,
None,
}Expand description
Argument shape required by a supported rule.
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.
OneValue
Exactly one value argument.
OneString
Exactly one string argument.
TwoStrings
Exactly two string arguments.
TwoInts
Exactly two integer arguments.
OneNumber
Exactly one numeric argument.
None
No arguments.
Trait Implementations§
impl Copy for ArgShape
impl Eq for ArgShape
impl StructuralPartialEq for ArgShape
Auto Trait Implementations§
impl Freeze for ArgShape
impl RefUnwindSafe for ArgShape
impl Send for ArgShape
impl Sync for ArgShape
impl Unpin for ArgShape
impl UnsafeUnpin for ArgShape
impl UnwindSafe for ArgShape
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