Enum bitsy_lang::Pat
source · pub enum Pat {
At(String, Vec<Pat>),
Bind(String),
Otherwise,
}
Expand description
A Pat
is a pattern for a match
expression.
Notably different about Bitsy from other languages with a match
or case
statement,
constructors and constant patterns are prefixed by an @
symbol to distinguish them
from variable bindings. For instance:
@Valid(n)
@Invalid
@Opcode::OP
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pat
impl Send for Pat
impl Sync for Pat
impl Unpin for Pat
impl UnwindSafe for Pat
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