pub struct MacroDefinition {
pub name: String,
pub parameters: Vec<Argument>,
pub statements: Vec<Statement>,
pub takes: usize,
pub returns: usize,
}Expand description
A Macro Definition
Fields§
§name: StringThe Macro Name
parameters: Vec<Argument>A list of Macro parameters
statements: Vec<Statement>A list of Statements contained in the Macro
takes: usizeThe take size
returns: usizeThe return size
Implementations§
Trait Implementations§
Source§impl Clone for MacroDefinition
impl Clone for MacroDefinition
Source§fn clone(&self) -> MacroDefinition
fn clone(&self) -> MacroDefinition
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 MacroDefinition
impl Debug for MacroDefinition
Source§impl Ord for MacroDefinition
impl Ord for MacroDefinition
Source§fn cmp(&self, other: &MacroDefinition) -> Ordering
fn cmp(&self, other: &MacroDefinition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MacroDefinition
impl PartialEq for MacroDefinition
Source§fn eq(&self, other: &MacroDefinition) -> bool
fn eq(&self, other: &MacroDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MacroDefinition
impl PartialOrd for MacroDefinition
Source§impl ToIRBytecode<CodegenError> for MacroDefinition
impl ToIRBytecode<CodegenError> for MacroDefinition
Source§fn to_irbytecode(&self) -> Result<IRBytecode, CodegenError>
fn to_irbytecode(&self) -> Result<IRBytecode, CodegenError>
Translates
self to intermediate bytecode representationimpl Eq for MacroDefinition
impl StructuralPartialEq for MacroDefinition
Auto Trait Implementations§
impl Freeze for MacroDefinition
impl RefUnwindSafe for MacroDefinition
impl Send for MacroDefinition
impl Sync for MacroDefinition
impl Unpin for MacroDefinition
impl UnsafeUnpin for MacroDefinition
impl UnwindSafe for MacroDefinition
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