pub enum TestOperand {
Expression(Box<Expression>),
CommandSubstitution(CommandSubstitution),
Expansion(Expansion),
Number(Number),
SimpleExpansion(SimpleExpansion),
StringNode(StringNode),
Subscript(Box<Subscript>),
VariableName(VariableName),
}Expand description
Permitted operand at binary_expression.left, unary_expression,
postfix_expression, ternary_expression.{condition,consequence,alternative}.
Variants§
Expression(Box<Expression>)
CommandSubstitution(CommandSubstitution)
Expansion(Expansion)
Number(Number)
SimpleExpansion(SimpleExpansion)
StringNode(StringNode)
Subscript(Box<Subscript>)
VariableName(VariableName)
Trait Implementations§
Source§impl Clone for TestOperand
impl Clone for TestOperand
Source§fn clone(&self) -> TestOperand
fn clone(&self) -> TestOperand
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 TestOperand
impl Debug for TestOperand
Source§impl<'de> Deserialize<'de> for TestOperand
impl<'de> Deserialize<'de> for TestOperand
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 TestOperand
impl PartialEq for TestOperand
Source§impl Serialize for TestOperand
impl Serialize for TestOperand
impl StructuralPartialEq for TestOperand
Auto Trait Implementations§
impl Freeze for TestOperand
impl RefUnwindSafe for TestOperand
impl Send for TestOperand
impl Sync for TestOperand
impl Unpin for TestOperand
impl UnsafeUnpin for TestOperand
impl UnwindSafe for TestOperand
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