Enum lunarity_ast::AssemblyItem
source · pub enum AssemblyItem<'ast> {
Identifier(Identifier<'ast>),
FunctionalAssemblyExpression(FunctionalAssemblyExpression<'ast>),
InlineAssemblyBlock(InlineAssemblyBlock<'ast>),
AssemblyLocalBinding(AssemblyLocalBinding<'ast>),
AssemblyAssignment(AssemblyAssignment<'ast>),
AssemblyLabel(AssemblyLabel<'ast>),
NumberLiteral(Primitive<'ast>),
StringLiteral,
HexLiteral,
}
Variants§
Identifier(Identifier<'ast>)
FunctionalAssemblyExpression(FunctionalAssemblyExpression<'ast>)
InlineAssemblyBlock(InlineAssemblyBlock<'ast>)
AssemblyLocalBinding(AssemblyLocalBinding<'ast>)
AssemblyAssignment(AssemblyAssignment<'ast>)
AssemblyLabel(AssemblyLabel<'ast>)
NumberLiteral(Primitive<'ast>)
StringLiteral
HexLiteral
Trait Implementations§
source§impl<'ast> Clone for AssemblyItem<'ast>
impl<'ast> Clone for AssemblyItem<'ast>
source§fn clone(&self) -> AssemblyItem<'ast>
fn clone(&self) -> AssemblyItem<'ast>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'ast> Debug for AssemblyItem<'ast>
impl<'ast> Debug for AssemblyItem<'ast>
source§impl<'ast> From<&'ast str> for AssemblyItem<'ast>
impl<'ast> From<&'ast str> for AssemblyItem<'ast>
source§fn from(val: Identifier<'ast>) -> Self
fn from(val: Identifier<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<AssemblyAssignment<'ast>> for AssemblyItem<'ast>
impl<'ast> From<AssemblyAssignment<'ast>> for AssemblyItem<'ast>
source§fn from(val: AssemblyAssignment<'ast>) -> Self
fn from(val: AssemblyAssignment<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<AssemblyLabel<'ast>> for AssemblyItem<'ast>
impl<'ast> From<AssemblyLabel<'ast>> for AssemblyItem<'ast>
source§fn from(val: AssemblyLabel<'ast>) -> Self
fn from(val: AssemblyLabel<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<AssemblyLocalBinding<'ast>> for AssemblyItem<'ast>
impl<'ast> From<AssemblyLocalBinding<'ast>> for AssemblyItem<'ast>
source§fn from(val: AssemblyLocalBinding<'ast>) -> Self
fn from(val: AssemblyLocalBinding<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<FunctionalAssemblyExpression<'ast>> for AssemblyItem<'ast>
impl<'ast> From<FunctionalAssemblyExpression<'ast>> for AssemblyItem<'ast>
source§fn from(val: FunctionalAssemblyExpression<'ast>) -> Self
fn from(val: FunctionalAssemblyExpression<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<InlineAssemblyBlock<'ast>> for AssemblyItem<'ast>
impl<'ast> From<InlineAssemblyBlock<'ast>> for AssemblyItem<'ast>
source§fn from(val: InlineAssemblyBlock<'ast>) -> Self
fn from(val: InlineAssemblyBlock<'ast>) -> Self
Converts to this type from the input type.