Struct dsdl_parser::ConstDefinition [] [src]

pub struct ConstDefinition {
    pub cast_mode: Option<CastMode>,
    pub field_type: Ty,
    pub name: Ident,
    pub constant: Const,
}

A constant definition

Constant definition patterns - cast_mode constant_type constant_name = constant_initializer

Fields

Trait Implementations

impl Display for ConstDefinition
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ConstDefinition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ConstDefinition
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ConstDefinition
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ConstDefinition
[src]