Struct u2size::u2size
[−]
[src]
pub struct u2size { pub msw: usize, pub lsw: usize, }
Fields
msw: usize
lsw: usize
Methods
impl u2size
[src]
pub fn trailing_zeros(self) -> u32
[src]
pub fn count_zeros(self) -> u32
[src]
pub fn count_ones(self) -> u32
[src]
pub fn rotate_left(self, k: u32) -> Self
[src]
pub fn rotate_right(self, k: u32) -> Self
[src]
pub fn overflowing_add(x: Self, y: Self) -> (Self, bool)
[src]
pub fn overflowing_sub(x: Self, y: Self) -> (Self, bool)
[src]
pub fn overflowing_mul(
u2size { msw: x1, lsw: x0 }: Self,
u2size { msw: y1, lsw: y0 }: Self
) -> (Self, bool)
[src]
u2size { msw: x1, lsw: x0 }: Self,
u2size { msw: y1, lsw: y0 }: Self
) -> (Self, bool)
Trait Implementations
impl Clone for u2size
[src]
fn clone(&self) -> u2size
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for u2size
[src]
impl PartialOrd for u2size
[src]
fn partial_cmp(&self, __arg_0: &u2size) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &u2size) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &u2size) -> bool
[src]
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: &u2size) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &u2size) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for u2size
[src]
fn cmp(&self, __arg_0: &u2size) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialEq for u2size
[src]
fn eq(&self, __arg_0: &u2size) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &u2size) -> bool
[src]
This method tests for !=
.
impl Eq for u2size
[src]
impl Debug for u2size
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<usize> for u2size
[src]
impl Shr<u32> for u2size
[src]
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, k: u32) -> Self
[src]
Performs the >>
operation.
impl Shl<u32> for u2size
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, k: u32) -> Self
[src]
Performs the <<
operation.
impl BitXor for u2size
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, other: Self) -> Self
[src]
Performs the ^
operation.
impl BitXorAssign for u2size
[src]
fn bitxor_assign(&mut self, other: Self)
[src]
Performs the ^=
operation.
impl BitAnd for u2size
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, other: Self) -> Self
[src]
Performs the &
operation.
impl BitAndAssign for u2size
[src]
fn bitand_assign(&mut self, other: Self)
[src]
Performs the &=
operation.
impl BitOr for u2size
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self
[src]
Performs the |
operation.
impl BitOrAssign for u2size
[src]
fn bitor_assign(&mut self, other: Self)
[src]
Performs the |=
operation.
impl Add for u2size
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
Performs the +
operation.
impl AddAssign for u2size
[src]
fn add_assign(&mut self, other: Self)
[src]
Performs the +=
operation.
impl Sub for u2size
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
Performs the -
operation.
impl SubAssign for u2size
[src]
fn sub_assign(&mut self, other: Self)
[src]
Performs the -=
operation.
impl Mul for u2size
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
Performs the *
operation.
impl MulAssign for u2size
[src]
fn mul_assign(&mut self, other: Self)
[src]
Performs the *=
operation.