Struct syntax::ast::AnonConst[][src]

pub struct AnonConst {
    pub id: NodeId,
    pub value: P<Expr>,
}

A constant (expression) that's not an item or associated item, but needs its own DefId for type-checking, const-eval, etc. These are usually found nested inside types (e.g. array lengths) or expressions (e.g. repeat counts), and also used to define explicit discriminant values for enum variants.

Fields

Trait Implementations

impl Clone for AnonConst
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for AnonConst
[src]

impl Decodable for AnonConst
[src]

impl Debug for AnonConst
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for AnonConst

impl !Sync for AnonConst