pub struct LeI32(/* private fields */);Expand description
32-bit signed little-endian integer. Alignment 1.
Implementations§
Source§impl LeI32
impl LeI32
Sourcepub const fn to_le_bytes(self) -> [u8; 4]
pub const fn to_le_bytes(self) -> [u8; 4]
Raw little-endian bytes.
Sourcepub const fn from_le_bytes(bytes: [u8; 4]) -> Self
pub const fn from_le_bytes(bytes: [u8; 4]) -> Self
Construct from raw little-endian bytes.
Sourcepub const fn checked_add(self, rhs: Self) -> Option<Self>
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Checked addition.
Sourcepub const fn checked_sub(self, rhs: Self) -> Option<Self>
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
Checked subtraction.
Sourcepub const fn checked_mul(self, rhs: Self) -> Option<Self>
pub const fn checked_mul(self, rhs: Self) -> Option<Self>
Checked multiplication.
Sourcepub const fn checked_div(self, rhs: Self) -> Option<Self>
pub const fn checked_div(self, rhs: Self) -> Option<Self>
Checked division.
Sourcepub const fn saturating_add(self, rhs: Self) -> Self
pub const fn saturating_add(self, rhs: Self) -> Self
Saturating addition.
Sourcepub const fn saturating_sub(self, rhs: Self) -> Self
pub const fn saturating_sub(self, rhs: Self) -> Self
Saturating subtraction.
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Whether the value is negative.
Trait Implementations§
Source§impl AddAssign<i32> for LeI32
impl AddAssign<i32> for LeI32
Source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Performs the
+= operation. Read moreSource§impl AddAssign for LeI32
impl AddAssign for LeI32
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl DivAssign<i32> for LeI32
impl DivAssign<i32> for LeI32
Source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Performs the
/= operation. Read moreSource§impl DivAssign for LeI32
impl DivAssign for LeI32
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl MulAssign<i32> for LeI32
impl MulAssign<i32> for LeI32
Source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Performs the
*= operation. Read moreSource§impl MulAssign for LeI32
impl MulAssign for LeI32
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl Ord for LeI32
impl Ord for LeI32
Source§impl PartialOrd<i32> for LeI32
impl PartialOrd<i32> for LeI32
Source§impl PartialOrd for LeI32
impl PartialOrd for LeI32
Source§impl RemAssign<i32> for LeI32
impl RemAssign<i32> for LeI32
Source§fn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
Performs the
%= operation. Read moreSource§impl RemAssign for LeI32
impl RemAssign for LeI32
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moreSource§impl SubAssign<i32> for LeI32
impl SubAssign<i32> for LeI32
Source§fn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
Performs the
-= operation. Read moreSource§impl SubAssign for LeI32
impl SubAssign for LeI32
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for LeI32
impl Eq for LeI32
impl Projectable for LeI32
impl StructuralPartialEq for LeI32
Auto Trait Implementations§
impl Freeze for LeI32
impl RefUnwindSafe for LeI32
impl Send for LeI32
impl Sync for LeI32
impl Unpin for LeI32
impl UnsafeUnpin for LeI32
impl UnwindSafe for LeI32
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