pub struct ConstructGrammarSlot {
pub name: String,
pub kind: String,
pub connective: Option<String>,
}Expand description
One ordered grammar slot: a named value (identifier | expression),
optionally introduced by a fixed connective word from
CONSTRUCT_GRAMMAR_CONNECTIVES.
Fields§
§name: String§kind: String§connective: Option<String>Trait Implementations§
Source§impl Clone for ConstructGrammarSlot
impl Clone for ConstructGrammarSlot
Source§fn clone(&self) -> ConstructGrammarSlot
fn clone(&self) -> ConstructGrammarSlot
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 ConstructGrammarSlot
impl Debug for ConstructGrammarSlot
impl Eq for ConstructGrammarSlot
Source§impl PartialEq for ConstructGrammarSlot
impl PartialEq for ConstructGrammarSlot
Source§fn eq(&self, other: &ConstructGrammarSlot) -> bool
fn eq(&self, other: &ConstructGrammarSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstructGrammarSlot
Auto Trait Implementations§
impl Freeze for ConstructGrammarSlot
impl RefUnwindSafe for ConstructGrammarSlot
impl Send for ConstructGrammarSlot
impl Sync for ConstructGrammarSlot
impl Unpin for ConstructGrammarSlot
impl UnsafeUnpin for ConstructGrammarSlot
impl UnwindSafe for ConstructGrammarSlot
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