pub enum ExpansionElement {
Primary(PrimaryExpression),
Array(Array),
Binary(BinaryExpression),
Concatenation(Concatenation),
Parenthesized(ParenthesizedExpression),
Regex(Regex),
SpecialVariableName(SpecialVariableName),
Subscript(Subscript),
VariableName(VariableName),
}Expand description
Element inside an expansion body.
Variants§
Primary(PrimaryExpression)
Array(Array)
Binary(BinaryExpression)
Concatenation(Concatenation)
Parenthesized(ParenthesizedExpression)
Regex(Regex)
SpecialVariableName(SpecialVariableName)
Subscript(Subscript)
VariableName(VariableName)
Trait Implementations§
Source§impl Clone for ExpansionElement
impl Clone for ExpansionElement
Source§fn clone(&self) -> ExpansionElement
fn clone(&self) -> ExpansionElement
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 ExpansionElement
impl Debug for ExpansionElement
Source§impl<'de> Deserialize<'de> for ExpansionElement
impl<'de> Deserialize<'de> for ExpansionElement
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 ExpansionElement
impl PartialEq for ExpansionElement
Source§impl Serialize for ExpansionElement
impl Serialize for ExpansionElement
impl StructuralPartialEq for ExpansionElement
Auto Trait Implementations§
impl Freeze for ExpansionElement
impl RefUnwindSafe for ExpansionElement
impl Send for ExpansionElement
impl Sync for ExpansionElement
impl Unpin for ExpansionElement
impl UnsafeUnpin for ExpansionElement
impl UnwindSafe for ExpansionElement
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