pub struct ConstExprNode {
pub node_id: NodeId,
pub expr: ConstExpr,
pub facets: Facets,
}Expand description
An expression node.
Expressions live in their own arena, so an expression referenced from
a bound, an array dimension, a case label, a @default or an
enumerator value is a first-class node with its own identity and its
own source facet. Spec §3.5.
Fields§
§node_id: NodeIdStable identity.
expr: ConstExprThe expression at this node.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
Source§impl Clone for ConstExprNode
impl Clone for ConstExprNode
Source§impl Debug for ConstExprNode
impl Debug for ConstExprNode
impl Eq for ConstExprNode
Source§impl PartialEq for ConstExprNode
impl PartialEq for ConstExprNode
impl StructuralPartialEq for ConstExprNode
Auto Trait Implementations§
impl Freeze for ConstExprNode
impl RefUnwindSafe for ConstExprNode
impl Send for ConstExprNode
impl Sync for ConstExprNode
impl Unpin for ConstExprNode
impl UnsafeUnpin for ConstExprNode
impl UnwindSafe for ConstExprNode
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