Enum ExprKind
pub enum ExprKind {
Show 18 variants
Ident,
Number,
String,
Bool,
Null,
Array,
Tuple,
StructLit,
Call,
IntrinsicCall,
Field,
Index,
SliceRange,
Prefix,
Binary,
Relational,
Block,
Splice,
}Expand description
Runtime expression category indexed by ExprId.
Variants§
Ident
Identifier reference.
Number
Numeric literal.
String
String literal.
Bool
Boolean literal.
Null
Null literal.
Array
Array literal.
Tuple
Tuple literal.
StructLit
Struct literal.
Call
Function call.
IntrinsicCall
Intrinsic call.
Field
Field projection.
Index
Index projection.
SliceRange
Slice-range projection.
Prefix
Prefix operator.
Binary
Binary operator.
Relational
Relational operator.
Block
Block expression.
Splice
Meta splice.
Trait Implementations§
impl Copy for ExprKind
impl Eq for ExprKind
impl StructuralPartialEq for ExprKind
Auto Trait Implementations§
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more