Struct rustv::isa::HalfWord
[−]
[src]
pub struct HalfWord(pub u16);
Methods
impl HalfWord
[src]
fn wrapping_add(self, rhs: Self) -> Self
fn wrapping_sub(self, rhs: Self) -> Self
Trait Implementations
impl Clone for HalfWord
[src]
fn clone(&self) -> HalfWord
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for HalfWord
[src]
impl Debug for HalfWord
[src]
impl Eq for HalfWord
[src]
impl Hash for HalfWord
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for HalfWord
[src]
fn cmp(&self, __arg_0: &HalfWord) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for HalfWord
[src]
fn eq(&self, __arg_0: &HalfWord) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HalfWord) -> bool
This method tests for !=
.
impl PartialOrd for HalfWord
[src]
fn partial_cmp(&self, __arg_0: &HalfWord) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &HalfWord) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &HalfWord) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &HalfWord) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &HalfWord) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the +
operator
fn add(self, _rhs: HalfWord) -> HalfWord
The method for the +
operator
impl Add<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the +
operator
fn add(self, _rhs: u16) -> HalfWord
The method for the +
operator
impl AddAssign<HalfWord> for HalfWord
[src]
fn add_assign(&mut self, _rhs: HalfWord)
The method for the +=
operator
impl AddAssign<u16> for HalfWord
[src]
fn add_assign(&mut self, _rhs: u16)
The method for the +=
operator
impl Sub<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the -
operator
fn sub(self, _rhs: HalfWord) -> HalfWord
The method for the -
operator
impl Sub<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the -
operator
fn sub(self, _rhs: u16) -> HalfWord
The method for the -
operator
impl Mul<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the *
operator
fn mul(self, _rhs: HalfWord) -> HalfWord
The method for the *
operator
impl Mul<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the *
operator
fn mul(self, _rhs: u16) -> HalfWord
The method for the *
operator
impl Div<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the /
operator
fn div(self, _rhs: HalfWord) -> HalfWord
The method for the /
operator
impl Div<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the /
operator
fn div(self, _rhs: u16) -> HalfWord
The method for the /
operator
impl Rem<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the %
operator
fn rem(self, _rhs: HalfWord) -> HalfWord
The method for the %
operator
impl Rem<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the %
operator
fn rem(self, _rhs: u16) -> HalfWord
The method for the %
operator
impl Shr<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the >>
operator
fn shr(self, _rhs: HalfWord) -> HalfWord
The method for the >>
operator
impl Shr<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the >>
operator
fn shr(self, _rhs: u16) -> HalfWord
The method for the >>
operator
impl Shl<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the <<
operator
fn shl(self, _rhs: HalfWord) -> HalfWord
The method for the <<
operator
impl Shl<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the <<
operator
fn shl(self, _rhs: u16) -> HalfWord
The method for the <<
operator
impl BitAnd<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the &
operator
fn bitand(self, _rhs: HalfWord) -> HalfWord
The method for the &
operator
impl BitAnd<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the &
operator
fn bitand(self, _rhs: u16) -> HalfWord
The method for the &
operator
impl BitOr<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the |
operator
fn bitor(self, _rhs: HalfWord) -> HalfWord
The method for the |
operator
impl BitOr<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the |
operator
fn bitor(self, _rhs: u16) -> HalfWord
The method for the |
operator
impl BitXor<HalfWord> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the ^
operator
fn bitxor(self, _rhs: HalfWord) -> HalfWord
The method for the ^
operator
impl BitXor<u16> for HalfWord
[src]
type Output = HalfWord
The resulting type after applying the ^
operator
fn bitxor(self, _rhs: u16) -> HalfWord
The method for the ^
operator
impl Display for HalfWord
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl LowerHex for HalfWord
[src]
impl UpperHex for HalfWord
[src]
impl IsaType for HalfWord
[src]
type Unsigned = HalfWord
type Signed = SignedHalfWord
fn as_signed(self) -> Self::Signed
fn as_signed_word(self) -> SignedWord
fn as_word(self) -> Word
fn as_half_word(self) -> HalfWord
fn as_byte(self) -> Byte
fn as_address(self) -> Address
fn as_bytes(self) -> Vec<Byte>
Converts the type into bytes, LSB-first.