Struct dsdl_parser::FieldDefinition
[−]
[src]
pub struct FieldDefinition { pub cast_mode: Option<CastMode>, pub field_type: Ty, pub array: ArrayInfo, pub name: Option<Ident>, }
A Field definition
Field definition patterns
- cast_mode field_type field_name
- cast_mode field_type[X] field_name
- cast_mode field_type[<X] field_name
- cast_mode field_type[<=X] field_name
- void_type
Fields
cast_mode: Option<CastMode>
field_type: Ty
array: ArrayInfo
name: Option<Ident>
Trait Implementations
impl Display for FieldDefinition
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Clone for FieldDefinition
[src]
fn clone(&self) -> FieldDefinition
[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 FieldDefinition
[src]
impl PartialEq for FieldDefinition
[src]
fn eq(&self, __arg_0: &FieldDefinition) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FieldDefinition) -> bool
[src]
This method tests for !=
.