pub struct ConstructGrammarClause {
pub name: String,
pub kind: String,
pub required: bool,
pub list: bool,
pub connective: Option<String>,
}Expand description
One clause of a declaration_block grammar: a named value (the name may
be multi-word), a kind from CONSTRUCT_GRAMMAR_CLAUSE_KINDS, whether it
is required, whether it takes a list of values, and an optional
introducing connective from CONSTRUCT_GRAMMAR_CLAUSE_CONNECTIVES. A flag
clause carries no value: it is never a list and never has a connective
(DR-0011 amendment, mirrored in build.rs).
Fields§
§name: String§kind: String§required: bool§list: bool§connective: Option<String>Trait Implementations§
Source§impl Clone for ConstructGrammarClause
impl Clone for ConstructGrammarClause
Source§fn clone(&self) -> ConstructGrammarClause
fn clone(&self) -> ConstructGrammarClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstructGrammarClause
impl Debug for ConstructGrammarClause
impl Eq for ConstructGrammarClause
Source§impl PartialEq for ConstructGrammarClause
impl PartialEq for ConstructGrammarClause
Source§fn eq(&self, other: &ConstructGrammarClause) -> bool
fn eq(&self, other: &ConstructGrammarClause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstructGrammarClause
Auto Trait Implementations§
impl Freeze for ConstructGrammarClause
impl RefUnwindSafe for ConstructGrammarClause
impl Send for ConstructGrammarClause
impl Sync for ConstructGrammarClause
impl Unpin for ConstructGrammarClause
impl UnsafeUnpin for ConstructGrammarClause
impl UnwindSafe for ConstructGrammarClause
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more