Enum iced_x86::FormatterTextKind
source · #[non_exhaustive]pub enum FormatterTextKind {
Show 16 variants
Text = 0,
Directive = 1,
Prefix = 2,
Mnemonic = 3,
Keyword = 4,
Operator = 5,
Punctuation = 6,
Number = 7,
Register = 8,
Decorator = 9,
SelectorValue = 10,
LabelAddress = 11,
FunctionAddress = 12,
Data = 13,
Label = 14,
Function = 15,
}
Expand description
Formatter text kind
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text = 0
Normal text
Directive = 1
Assembler directive
Prefix = 2
Any prefix
Mnemonic = 3
Any mnemonic
Keyword = 4
Any keyword
Operator = 5
Any operator
Punctuation = 6
Any punctuation
Number = 7
Number
Register = 8
Any register
Decorator = 9
A decorator, eg. sae
in {sae}
SelectorValue = 10
Selector value (eg. far JMP
/CALL
)
LabelAddress = 11
Label address (eg. JE XXXXXX
)
FunctionAddress = 12
Function address (eg. CALL XXXXXX
)
Data = 13
Data symbol
Label = 14
Label symbol
Function = 15
Function symbol
Implementations§
source§impl FormatterTextKind
impl FormatterTextKind
sourcepub fn values(
) -> impl Iterator<Item = FormatterTextKind> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn values( ) -> impl Iterator<Item = FormatterTextKind> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Iterates over all FormatterTextKind
enum values
Trait Implementations§
source§impl Clone for FormatterTextKind
impl Clone for FormatterTextKind
source§fn clone(&self) -> FormatterTextKind
fn clone(&self) -> FormatterTextKind
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 Debug for FormatterTextKind
impl Debug for FormatterTextKind
source§impl Default for FormatterTextKind
impl Default for FormatterTextKind
source§impl<'de> Deserialize<'de> for FormatterTextKind
impl<'de> Deserialize<'de> for FormatterTextKind
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 Hash for FormatterTextKind
impl Hash for FormatterTextKind
source§impl Ord for FormatterTextKind
impl Ord for FormatterTextKind
source§fn cmp(&self, other: &FormatterTextKind) -> Ordering
fn cmp(&self, other: &FormatterTextKind) -> Ordering
1.21.0 · 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 FormatterTextKind
impl PartialEq for FormatterTextKind
source§fn eq(&self, other: &FormatterTextKind) -> bool
fn eq(&self, other: &FormatterTextKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FormatterTextKind
impl PartialOrd for FormatterTextKind
source§fn partial_cmp(&self, other: &FormatterTextKind) -> Option<Ordering>
fn partial_cmp(&self, other: &FormatterTextKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FormatterTextKind
impl Serialize for FormatterTextKind
source§impl TryFrom<usize> for FormatterTextKind
impl TryFrom<usize> for FormatterTextKind
impl Copy for FormatterTextKind
impl Eq for FormatterTextKind
impl StructuralEq for FormatterTextKind
impl StructuralPartialEq for FormatterTextKind
Auto Trait Implementations§
impl RefUnwindSafe for FormatterTextKind
impl Send for FormatterTextKind
impl Sync for FormatterTextKind
impl Unpin for FormatterTextKind
impl UnwindSafe for FormatterTextKind
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