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
cast_mode: Option<CastMode>
field_type: Ty
name: Ident
constant: Const
Trait Implementations
impl Display for ConstDefinition
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Clone for ConstDefinition
[src]
fn clone(&self) -> ConstDefinition
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ConstDefinition
[src]
impl PartialEq for ConstDefinition
[src]
fn eq(&self, __arg_0: &ConstDefinition) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConstDefinition) -> bool
[src]
This method tests for !=
.