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

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]

[src]

Formats the value using the given formatter. Read more

impl Clone for Directive
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Directive
[src]

impl Debug for Directive
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Directive
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Directive
[src]

impl FromStr for Directive
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more