#[non_exhaustive]pub enum BranchKeyword {
If,
Unless,
Ternary,
}Expand description
Surface form of a BranchShell.
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
if (...) { ... } block statement.
Unless
unless (...) { ... } block statement.
Ternary
COND ? THEN : ELSE ternary expression.
Trait Implementations§
Source§impl Clone for BranchKeyword
impl Clone for BranchKeyword
Source§fn clone(&self) -> BranchKeyword
fn clone(&self) -> BranchKeyword
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 BranchKeyword
Source§impl Debug for BranchKeyword
impl Debug for BranchKeyword
impl Eq for BranchKeyword
Source§impl Hash for BranchKeyword
impl Hash for BranchKeyword
Source§impl PartialEq for BranchKeyword
impl PartialEq for BranchKeyword
Source§fn eq(&self, other: &BranchKeyword) -> bool
fn eq(&self, other: &BranchKeyword) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BranchKeyword
Auto Trait Implementations§
impl Freeze for BranchKeyword
impl RefUnwindSafe for BranchKeyword
impl Send for BranchKeyword
impl Sync for BranchKeyword
impl Unpin for BranchKeyword
impl UnsafeUnpin for BranchKeyword
impl UnwindSafe for BranchKeyword
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