Enum dsdl_parser::Line [] [src]

pub enum Line {
    Empty,
    Comment(Comment),
    Definition(AttributeDefinitionOption<Comment>),
    Directive(DirectiveOption<Comment>),
}

A Line in a DSDL File

A data structure definition consists of attributes and directives. Any line of the definition file may contain at most one attribute definition or at most one directive. The same line cannot contain an attribute definition and a directive at the same time.

Variants

Methods

impl Line
[src]

[src]

returns true if the Line is empty

[src]

returns true if the Line contains a directive

[src]

returns true if the Line contains a definiition

[src]

returns true if the Line is nothing but a comment

[src]

returns true if the Line contains a comment

Trait Implementations

impl Display for Line
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Line
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Line
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Line
[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 Line
[src]