Trait cpclib_asm::preamble::ListingElement
source · [−]pub trait ListingElement: Debug {
type MacroParam: MacroParamElement;
type TestKind: TestKindElement;
type Expr: ExprElement;
Show 54 methods
fn mnemonic(&self) -> Option<&Mnemonic>;
fn mnemonic_arg1(&self) -> Option<&DataAccess>;
fn mnemonic_arg2(&self) -> Option<&DataAccess>;
fn mnemonic_arg1_mut(&mut self) -> Option<&mut DataAccess>;
fn mnemonic_arg2_mut(&mut self) -> Option<&mut DataAccess>;
fn is_directive(&self) -> bool;
fn is_iterate(&self) -> bool;
fn iterate_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn iterate_counter_name(&self) -> &str;
fn iterate_values(&self) -> Either<&Vec<Self::Expr, Global>, &Self::Expr>;
fn is_for(&self) -> bool;
fn for_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn for_label(&self) -> &str;
fn for_start(&self) -> &Self::Expr;
fn for_stop(&self) -> &Self::Expr;
fn for_step(&self) -> Option<&Self::Expr>;
fn is_repeat_until(&self) -> bool;
fn repeat_until_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn repeat_until_condition(&self) -> &Self::Expr;
fn is_rorg(&self) -> bool;
fn rorg_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn rorg_expr(&self) -> &Self::Expr;
fn is_repeat(&self) -> bool;
fn repeat_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn repeat_count(&self) -> &Self::Expr;
fn repeat_counter_name(&self) -> Option<&str>;
fn repeat_counter_start(&self) -> Option<&Self::Expr>;
fn is_crunched_section(&self) -> bool;
fn crunched_section_listing(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn crunched_section_kind(&self) -> &CrunchType;
fn is_macro_definition(&self) -> bool;
fn macro_definition_name(&self) -> &str;
fn macro_definition_arguments(&self) -> SmallVec<[&str; 4]>;
fn macro_definition_code(&self) -> &str;
fn is_call_macro_or_build_struct(&self) -> bool;
fn macro_call_name(&self) -> &str;
fn macro_call_arguments(&self) -> &[Self::MacroParam];
fn is_if(&self) -> bool;
fn if_nb_tests(&self) -> usize;
fn if_test(&self, idx: usize) -> (&Self::TestKind, &[Self]);
fn if_else(&self) -> Option<&[Self]>;
fn is_incbin(&self) -> bool;
fn incbin_fname(&self) -> &str;
fn incbin_offset(&self) -> Option<&Self::Expr>;
fn incbin_length(&self) -> Option<&Self::Expr>;
fn incbin_transformation(&self) -> &BinaryTransformation;
fn is_include(&self) -> bool;
fn include_fname(&self) -> &str;
fn include_namespace(&self) -> Option<&str>;
fn include_once(&self) -> bool;
fn is_function_definition(&self) -> bool;
fn function_definition_name(&self) -> &str;
fn function_definition_params(&self) -> SmallVec<[&str; 4]>;
fn function_definition_inner(&self) -> &[Self]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
}Expand description
The ListingElement trait contains the public method any memeber of a listing should contain ATM there is nothing really usefull