pub struct I8(/* private fields */);Expand description
Wrapper struct around i8. Represents a i8-bit processor architecture.
Trait Implementations§
Source§impl AddAssign for I8
impl AddAssign for I8
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BitAndAssign for I8
impl BitAndAssign for I8
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for I8
impl BitOrAssign for I8
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for I8
impl BitXorAssign for I8
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreimpl Copy for I8
Source§impl DivAssign for I8
impl DivAssign for I8
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreimpl Eq for I8
Source§impl MulAssign for I8
impl MulAssign for I8
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl Ord for I8
impl Ord for I8
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for I8
impl PartialOrd for I8
Source§impl RemAssign for I8
impl RemAssign for I8
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moreSource§impl ShlAssign for I8
impl ShlAssign for I8
Source§fn shl_assign(&mut self, rhs: Self)
fn shl_assign(&mut self, rhs: Self)
Performs the
<<= operation. Read moreSource§impl ShrAssign for I8
impl ShrAssign for I8
Source§fn shr_assign(&mut self, rhs: Self)
fn shr_assign(&mut self, rhs: Self)
Performs the
>>= operation. Read moreimpl StructuralPartialEq for I8
Source§impl SubAssign for I8
impl SubAssign for I8
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl Word for I8
impl Word for I8
Source§fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>
fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseIntError>
This is a wrapper around the
from_str_radix() function that is implemented for all of Rust’s numeric types. Read moreSource§fn check_carry_add(&self, rhs: Self) -> bool
fn check_carry_add(&self, rhs: Self) -> bool
Checks for carry when adding.
Source§fn check_carry_sub(&self, rhs: Self) -> bool
fn check_carry_sub(&self, rhs: Self) -> bool
Checks for carry when subtracting.
Source§fn check_carry_mul(&self, rhs: Self) -> bool
fn check_carry_mul(&self, rhs: Self) -> bool
Checks for carry when multiplying.
Source§fn check_carry_div(&self, rhs: Self) -> bool
fn check_carry_div(&self, rhs: Self) -> bool
Checks for division overflow (i.e., MIN / -1 for signed types).
Similiar to
Word::overflowing_div() this is a convenience wrapper over Rust’s overflowing_div().
However it discards the result of the division.Source§fn overflowing_add(&self, rhs: Self) -> (Self, bool)
fn overflowing_add(&self, rhs: Self) -> (Self, bool)
Convenience wrapper over Rust’s
overflowing_add().Source§fn overflowing_sub(&self, rhs: Self) -> (Self, bool)
fn overflowing_sub(&self, rhs: Self) -> (Self, bool)
Convenience wrapper over Rust’s
overflowing_sub().Source§fn overflowing_mul(&self, rhs: Self) -> (Self, bool)
fn overflowing_mul(&self, rhs: Self) -> (Self, bool)
Convenience wrapper over Rust’s
overflowing_mul().Source§fn overflowing_div(&self, rhs: Self) -> (Self, bool)
fn overflowing_div(&self, rhs: Self) -> (Self, bool)
Convenience wrapper over Rust’s
overflowing_div().Source§fn rotate_left(&self, val: u32) -> Self
fn rotate_left(&self, val: u32) -> Self
Convenience wrapper over Rust’s
rotate_left().Source§fn rotate_right(&self, val: u32) -> Self
fn rotate_right(&self, val: u32) -> Self
Convenience wrapper over Rust’s
rotate_right().Auto Trait Implementations§
impl Freeze for I8
impl RefUnwindSafe for I8
impl Send for I8
impl Sync for I8
impl Unpin for I8
impl UnsafeUnpin for I8
impl UnwindSafe for I8
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