pub enum ArgumentScheme {
NoArgument,
Range(RegisterRange),
Value(ArgumentValue),
}
Variants§
Implementations§
Source§impl ArgumentScheme
impl ArgumentScheme
pub fn from_type(arg_type: ArgumentType, data: u32) -> ArgumentScheme
pub fn get_type(&self) -> ArgumentType
pub fn to_u32(&self) -> u32
pub fn to_asm(&self) -> String
Sourcepub fn get_no_argument(&self) -> OperationResult<()>
pub fn get_no_argument(&self) -> OperationResult<()>
Can return an OperationError::InvalidArgumentType.
Sourcepub fn get_value(&self) -> OperationResult<u32>
pub fn get_value(&self) -> OperationResult<u32>
Can return an OperationError::InvalidArgumentType.
Sourcepub fn get_range(&self) -> OperationResult<RegisterRange>
pub fn get_range(&self) -> OperationResult<RegisterRange>
Can return an OperationError::InvalidArgumentType.
Sourcepub fn get_one_u32(&self) -> OperationResult<u32>
pub fn get_one_u32(&self) -> OperationResult<u32>
Can return an OperationError::InvalidArgumentType.
Sourcepub fn get_two_u16(&self) -> OperationResult<(u16, u16)>
pub fn get_two_u16(&self) -> OperationResult<(u16, u16)>
Can return an OperationError::InvalidArgumentType.
Sourcepub fn get_four_u8(&self) -> OperationResult<(u8, u8, u8, u8)>
pub fn get_four_u8(&self) -> OperationResult<(u8, u8, u8, u8)>
Can return an OperationError::InvalidArgumentType.
Trait Implementations§
Source§impl Clone for ArgumentScheme
impl Clone for ArgumentScheme
Source§fn clone(&self) -> ArgumentScheme
fn clone(&self) -> ArgumentScheme
Returns a duplicate 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 ArgumentScheme
impl Debug for ArgumentScheme
Source§impl Ord for ArgumentScheme
impl Ord for ArgumentScheme
Source§fn cmp(&self, other: &ArgumentScheme) -> Ordering
fn cmp(&self, other: &ArgumentScheme) -> 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 ArgumentScheme
impl PartialEq for ArgumentScheme
Source§impl PartialOrd for ArgumentScheme
impl PartialOrd for ArgumentScheme
impl Copy for ArgumentScheme
impl Eq for ArgumentScheme
impl StructuralPartialEq for ArgumentScheme
Auto Trait Implementations§
impl Freeze for ArgumentScheme
impl RefUnwindSafe for ArgumentScheme
impl Send for ArgumentScheme
impl Sync for ArgumentScheme
impl Unpin for ArgumentScheme
impl UnwindSafe for ArgumentScheme
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