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
required: bool
name: Cow<'input, str>
ty: Loc<Type<'input>>
field_as: Option<String>
endl: bool
If the end-of-line indicator present.
A false
value should indicate an error.
Methods
impl<'input> Field<'input>
[src]
pub fn is_optional(&self) -> bool
[src]
Trait Implementations
impl<'input> Debug for Field<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for Field<'input>
[src]
fn eq(&self, __arg_0: &Field<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Field<'input>) -> bool
[src]
This method tests for !=
.