#[non_exhaustive]pub enum StatementModifierKind {
If,
Unless,
While,
Until,
Foreach,
Other,
}Expand description
Postfix statement-modifier verb for a StatementModifierShell.
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.
If
STMT if COND.
Unless
STMT unless COND.
While
STMT while COND.
Until
STMT until COND.
Foreach
STMT for LIST / STMT foreach LIST.
Other
An unrecognized modifier verb preserved verbatim.
Trait Implementations§
Source§impl Clone for StatementModifierKind
impl Clone for StatementModifierKind
Source§fn clone(&self) -> StatementModifierKind
fn clone(&self) -> StatementModifierKind
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 moreimpl Copy for StatementModifierKind
Source§impl Debug for StatementModifierKind
impl Debug for StatementModifierKind
impl Eq for StatementModifierKind
Source§impl Hash for StatementModifierKind
impl Hash for StatementModifierKind
Source§impl PartialEq for StatementModifierKind
impl PartialEq for StatementModifierKind
Source§fn eq(&self, other: &StatementModifierKind) -> bool
fn eq(&self, other: &StatementModifierKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatementModifierKind
Auto Trait Implementations§
impl Freeze for StatementModifierKind
impl RefUnwindSafe for StatementModifierKind
impl Send for StatementModifierKind
impl Sync for StatementModifierKind
impl Unpin for StatementModifierKind
impl UnsafeUnpin for StatementModifierKind
impl UnwindSafe for StatementModifierKind
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