Enum dsdl_parser::Directive
[−]
[src]
pub enum Directive { Union, }
An Uavcan Directive
A directive is a single case-sensitive word starting with an “at sign” (@), possibly followed by space-separated arguments.
Variants
Union
This directive instructs the DSDL compiler that the current message or the current part of a service data type (request or response) is a tagged union. A tagged union is a data structure that may encode either of its fields at a time. Such a data structure contains one implicit field, a union tag that indicates what particular field the data structure is holding at the moment. Unions are required to have at least two fields.
Trait Implementations
impl Display for Directive
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Clone for Directive
[src]
fn clone(&self) -> Directive
[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 Copy for Directive
[src]
impl Debug for Directive
[src]
impl PartialEq for Directive
[src]
fn eq(&self, __arg_0: &Directive) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.