Enum muse_lang::compiler::syntax::EntryKeyPattern
source · pub enum EntryKeyPattern {
Nil,
Bool(bool),
Int(i64),
UInt(u64),
Float(f64),
String(Symbol),
Identifier(Symbol),
}Expand description
The syntax components of the key portion of a pattern match on a map field.
Variants§
Nil
Match if nil
Bool(bool)
Match if a boolean of a given value.
Int(i64)
Match if an integer of a given value.
While this pattern is unsigned, if an unsigned integer has the same numerical value, it will still match.
UInt(u64)
Match if an integer of a given value.
While this pattern is unsigned, if a signed integer has the same numerical value, it will still match.
Float(f64)
Match if a float of a given value.
Float matching checks if the difference between the pattern and value is
less than f64::EPSILON.
String(Symbol)
Match if a string of a given value.
Identifier(Symbol)
Match against a value contained in a variable.
Trait Implementations§
source§impl Clone for EntryKeyPattern
impl Clone for EntryKeyPattern
source§fn clone(&self) -> EntryKeyPattern
fn clone(&self) -> EntryKeyPattern
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EntryKeyPattern
impl Debug for EntryKeyPattern
source§impl PartialEq for EntryKeyPattern
impl PartialEq for EntryKeyPattern
impl StructuralPartialEq for EntryKeyPattern
Auto Trait Implementations§
impl Freeze for EntryKeyPattern
impl RefUnwindSafe for EntryKeyPattern
impl Send for EntryKeyPattern
impl Sync for EntryKeyPattern
impl Unpin for EntryKeyPattern
impl UnwindSafe for EntryKeyPattern
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)