pub enum PrimaryExpression {
AnsiCString(AnsiCString),
ArithmeticExpansion(ArithmeticExpansion),
BraceExpression(BraceExpression),
CommandSubstitution(CommandSubstitution),
Expansion(Expansion),
Number(Number),
ProcessSubstitution(ProcessSubstitution),
RawString(RawString),
SimpleExpansion(SimpleExpansion),
StringNode(StringNode),
TranslatedString(TranslatedString),
Word(Word),
}Variants§
AnsiCString(AnsiCString)
ArithmeticExpansion(ArithmeticExpansion)
BraceExpression(BraceExpression)
CommandSubstitution(CommandSubstitution)
Expansion(Expansion)
Number(Number)
ProcessSubstitution(ProcessSubstitution)
RawString(RawString)
SimpleExpansion(SimpleExpansion)
StringNode(StringNode)
Renamed from grammar’s string to avoid clashing with std::String.
TranslatedString(TranslatedString)
Word(Word)
Trait Implementations§
Source§impl Clone for PrimaryExpression
impl Clone for PrimaryExpression
Source§fn clone(&self) -> PrimaryExpression
fn clone(&self) -> PrimaryExpression
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 PrimaryExpression
impl Debug for PrimaryExpression
Source§impl<'de> Deserialize<'de> for PrimaryExpression
impl<'de> Deserialize<'de> for PrimaryExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrimaryExpression
impl PartialEq for PrimaryExpression
Source§impl Serialize for PrimaryExpression
impl Serialize for PrimaryExpression
impl StructuralPartialEq for PrimaryExpression
Auto Trait Implementations§
impl Freeze for PrimaryExpression
impl RefUnwindSafe for PrimaryExpression
impl Send for PrimaryExpression
impl Sync for PrimaryExpression
impl Unpin for PrimaryExpression
impl UnsafeUnpin for PrimaryExpression
impl UnwindSafe for PrimaryExpression
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