Enum iced_x86::MemorySizeOptions
source · pub enum MemorySizeOptions {
Default = 0,
Always = 1,
Minimal = 2,
Never = 3,
}
Expand description
Memory size options used by the formatters
Variants§
Default = 0
Show memory size if the assembler requires it, else don’t show anything
Always = 1
Always show the memory size, even if the assembler doesn’t need it
Minimal = 2
Show memory size if a human can’t figure out the size of the operand
Never = 3
Never show memory size
Implementations§
source§impl MemorySizeOptions
impl MemorySizeOptions
sourcepub fn values(
) -> impl Iterator<Item = MemorySizeOptions> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
pub fn values( ) -> impl Iterator<Item = MemorySizeOptions> + DoubleEndedIterator + ExactSizeIterator + FusedIterator
Iterates over all MemorySizeOptions
enum values
Trait Implementations§
source§impl Clone for MemorySizeOptions
impl Clone for MemorySizeOptions
source§fn clone(&self) -> MemorySizeOptions
fn clone(&self) -> MemorySizeOptions
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 MemorySizeOptions
impl Debug for MemorySizeOptions
source§impl Default for MemorySizeOptions
impl Default for MemorySizeOptions
source§impl<'de> Deserialize<'de> for MemorySizeOptions
impl<'de> Deserialize<'de> for MemorySizeOptions
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 MemorySizeOptions
impl Hash for MemorySizeOptions
source§impl Ord for MemorySizeOptions
impl Ord for MemorySizeOptions
source§fn cmp(&self, other: &MemorySizeOptions) -> Ordering
fn cmp(&self, other: &MemorySizeOptions) -> 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 MemorySizeOptions
impl PartialEq for MemorySizeOptions
source§fn eq(&self, other: &MemorySizeOptions) -> bool
fn eq(&self, other: &MemorySizeOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MemorySizeOptions
impl PartialOrd for MemorySizeOptions
source§fn partial_cmp(&self, other: &MemorySizeOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &MemorySizeOptions) -> 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 MemorySizeOptions
impl Serialize for MemorySizeOptions
source§impl TryFrom<usize> for MemorySizeOptions
impl TryFrom<usize> for MemorySizeOptions
impl Copy for MemorySizeOptions
impl Eq for MemorySizeOptions
impl StructuralEq for MemorySizeOptions
impl StructuralPartialEq for MemorySizeOptions
Auto Trait Implementations§
impl RefUnwindSafe for MemorySizeOptions
impl Send for MemorySizeOptions
impl Sync for MemorySizeOptions
impl Unpin for MemorySizeOptions
impl UnwindSafe for MemorySizeOptions
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