Struct reproto_ast::Field [] [src]

pub struct Field<'input> {
    pub required: bool,
    pub name: Cow<'input, str>,
    pub ty: Loc<Type<'input>>,
    pub field_as: Option<String>,
    pub endl: bool,
}

A field.

This example is not tested
<name><modifier>: <ty> as <field_as>

Fields

If the end-of-line indicator present. A false value should indicate an error.

Methods

impl<'input> Field<'input>
[src]

[src]

Trait Implementations

impl<'input> Debug for Field<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> PartialEq for Field<'input>
[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<'input> Eq for Field<'input>
[src]

Auto Trait Implementations

impl<'input> Send for Field<'input>

impl<'input> Sync for Field<'input>