pub struct Immediate16 { /* private fields */ }Expand description
Represents an 16-bit immediate value.
Implementations§
Source§impl Immediate16
impl Immediate16
pub const fn from_imm8_zero_extended(value: Immediate8) -> Self
pub const fn from_imm8_sign_extended(value: Immediate8) -> Self
pub const fn from_u16(value: u16) -> Self
pub const fn from_i16(value: i16) -> Self
pub const fn as_u16(self) -> u16
pub const fn as_i16(self) -> i16
pub const fn encode(self) -> [u8; 2]
pub const fn equals(self, other: Self) -> bool
Trait Implementations§
Source§impl Clone for Immediate16
impl Clone for Immediate16
Source§fn clone(&self) -> Immediate16
fn clone(&self) -> Immediate16
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Immediate16
impl Debug for Immediate16
Source§impl From<Immediate16> for i16
impl From<Immediate16> for i16
Source§fn from(value: Immediate16) -> Self
fn from(value: Immediate16) -> Self
Converts to this type from the input type.
Source§impl From<Immediate16> for u16
impl From<Immediate16> for u16
Source§fn from(value: Immediate16) -> Self
fn from(value: Immediate16) -> Self
Converts to this type from the input type.
Source§impl From<i16> for Immediate16
impl From<i16> for Immediate16
Source§impl From<u16> for Immediate16
impl From<u16> for Immediate16
Source§impl Hash for Immediate16
impl Hash for Immediate16
Source§impl PartialEq for Immediate16
impl PartialEq for Immediate16
Source§fn eq(&self, other: &Immediate16) -> bool
fn eq(&self, other: &Immediate16) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Immediate16
impl Eq for Immediate16
impl StructuralPartialEq for Immediate16
Auto Trait Implementations§
impl Freeze for Immediate16
impl RefUnwindSafe for Immediate16
impl Send for Immediate16
impl Sync for Immediate16
impl Unpin for Immediate16
impl UnsafeUnpin for Immediate16
impl UnwindSafe for Immediate16
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