Struct rustv::isa::Byte
[−]
[src]
pub struct Byte(pub u8);
Methods
impl Byte
[src]
fn wrapping_add(self, rhs: Self) -> Self
fn wrapping_sub(self, rhs: Self) -> Self
Trait Implementations
impl Clone for Byte
[src]
fn clone(&self) -> Byte
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 Byte
[src]
impl Debug for Byte
[src]
impl Eq for Byte
[src]
impl Hash for Byte
[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 Byte
[src]
fn cmp(&self, __arg_0: &Byte) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for Byte
[src]
fn eq(&self, __arg_0: &Byte) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Byte) -> bool
This method tests for !=
.
impl PartialOrd for Byte
[src]
fn partial_cmp(&self, __arg_0: &Byte) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Byte) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Byte) -> 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: &Byte) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Byte) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the +
operator
fn add(self, _rhs: Byte) -> Byte
The method for the +
operator
impl Add<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the +
operator
fn add(self, _rhs: u8) -> Byte
The method for the +
operator
impl AddAssign<Byte> for Byte
[src]
fn add_assign(&mut self, _rhs: Byte)
The method for the +=
operator
impl AddAssign<u8> for Byte
[src]
fn add_assign(&mut self, _rhs: u8)
The method for the +=
operator
impl Sub<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the -
operator
fn sub(self, _rhs: Byte) -> Byte
The method for the -
operator
impl Sub<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the -
operator
fn sub(self, _rhs: u8) -> Byte
The method for the -
operator
impl Mul<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the *
operator
fn mul(self, _rhs: Byte) -> Byte
The method for the *
operator
impl Mul<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the *
operator
fn mul(self, _rhs: u8) -> Byte
The method for the *
operator
impl Div<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the /
operator
fn div(self, _rhs: Byte) -> Byte
The method for the /
operator
impl Div<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the /
operator
fn div(self, _rhs: u8) -> Byte
The method for the /
operator
impl Rem<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the %
operator
fn rem(self, _rhs: Byte) -> Byte
The method for the %
operator
impl Rem<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the %
operator
fn rem(self, _rhs: u8) -> Byte
The method for the %
operator
impl Shr<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the >>
operator
fn shr(self, _rhs: Byte) -> Byte
The method for the >>
operator
impl Shr<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the >>
operator
fn shr(self, _rhs: u8) -> Byte
The method for the >>
operator
impl Shl<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the <<
operator
fn shl(self, _rhs: Byte) -> Byte
The method for the <<
operator
impl Shl<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the <<
operator
fn shl(self, _rhs: u8) -> Byte
The method for the <<
operator
impl BitAnd<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the &
operator
fn bitand(self, _rhs: Byte) -> Byte
The method for the &
operator
impl BitAnd<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the &
operator
fn bitand(self, _rhs: u8) -> Byte
The method for the &
operator
impl BitOr<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the |
operator
fn bitor(self, _rhs: Byte) -> Byte
The method for the |
operator
impl BitOr<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the |
operator
fn bitor(self, _rhs: u8) -> Byte
The method for the |
operator
impl BitXor<Byte> for Byte
[src]
type Output = Byte
The resulting type after applying the ^
operator
fn bitxor(self, _rhs: Byte) -> Byte
The method for the ^
operator
impl BitXor<u8> for Byte
[src]
type Output = Byte
The resulting type after applying the ^
operator
fn bitxor(self, _rhs: u8) -> Byte
The method for the ^
operator
impl Display for Byte
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl LowerHex for Byte
[src]
impl UpperHex for Byte
[src]
impl IsaType for Byte
[src]
type Unsigned = Byte
type Signed = SignedByte
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.