pub struct FormatSyntax {
pub omit_src_dst_same_reg: Option<bool>,
pub omit_src_dst_diff_reg: Option<bool>,
pub omit_deref_null_const: Option<bool>,
pub positive_integer_format: Option<FormatInteger>,
pub negative_integer_format: Option<FormatInteger>,
}Expand description
Type that represents the per-instruction syntax settings.
Fields§
§omit_src_dst_same_reg: Option<bool>Settings for a register that can be omitted when it is used as both the source and the
destination.
For example, in ADCS{<q>} {<Rdn>, }<Rdn>, <Rm>, this would control whether or not <Rdn>
is displayed.
If None, defaults to the corresponding global configuration value.
omit_src_dst_diff_reg: Option<bool>Controls if a register that can be omitted when it can be used as both the source and the
destination should be displayed.
For example, in ADC{<c>}{<q>} {<Rd>, }<Rn>, <Rm>, RRX, this would control whether or not
<Rd> is displayed if <Rd> == <Rn>.
If None, defaults to the corresponding global configuration value.
omit_deref_null_const: Option<bool>Controls if optional null integers in dereferencing groups should be displayed.
For example, in LDXRB <Wt>, [<Xn|SP>{, #0}], this would control whether or not #0 is
displayed.
If None, defaults to the corresponding global configuration value.
positive_integer_format: Option<FormatInteger>Controls how positive numbers are displayed.
If None, defaults to the corresponding global configuration value.
negative_integer_format: Option<FormatInteger>Controls how negative numbers are displayed.
If None, defaults to the corresponding global configuration value.
Implementations§
Source§impl FormatSyntax
impl FormatSyntax
pub fn new() -> Self
pub fn get_omit_src_dst_same_reg(&self, global: &FormatSyntaxGlobal) -> bool
pub fn get_omit_src_dst_diff_reg(&self, global: &FormatSyntaxGlobal) -> bool
pub fn get_positive_integer_format( &self, global: &FormatSyntaxGlobal, ) -> FormatInteger
pub fn get_negative_integer_format( &self, global: &FormatSyntaxGlobal, ) -> FormatInteger
Trait Implementations§
Source§impl Clone for FormatSyntax
impl Clone for FormatSyntax
Source§fn clone(&self) -> FormatSyntax
fn clone(&self) -> FormatSyntax
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FormatSyntax
Source§impl Debug for FormatSyntax
impl Debug for FormatSyntax
Source§impl Default for FormatSyntax
impl Default for FormatSyntax
Source§fn default() -> FormatSyntax
fn default() -> FormatSyntax
impl Eq for FormatSyntax
Source§impl Hash for FormatSyntax
impl Hash for FormatSyntax
Source§impl Ord for FormatSyntax
impl Ord for FormatSyntax
Source§fn cmp(&self, other: &FormatSyntax) -> Ordering
fn cmp(&self, other: &FormatSyntax) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FormatSyntax
impl PartialEq for FormatSyntax
Source§fn eq(&self, other: &FormatSyntax) -> bool
fn eq(&self, other: &FormatSyntax) -> bool
self and other values to be equal, and is used by ==.