Struct pinteger::psize
[−]
[src]
pub struct psize { /* fields omitted */ }
Methods
impl psize
[src]
const MIN: psize
MIN: psize = psize{raw: 1,}
const MAX: psize
MAX: psize = psize{raw: 0,}
fn one_plus(x: usize) -> Self
[src]
fn minus_one(self) -> usize
[src]
fn checked_from(x: usize) -> Option<Self>
[src]
fn ilog2(self) -> u32
[src]
fn is_power_of_two(self) -> bool
[src]
Trait Implementations
impl Copy for psize
[src]
impl Clone for psize
[src]
fn clone(&self) -> psize
[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 Eq for psize
[src]
impl PartialEq for psize
[src]
fn eq(&self, __arg_0: &psize) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &psize) -> bool
[src]
This method tests for !=
.
impl Ord for psize
[src]
fn cmp(&self, y: &Self) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for psize
[src]
fn partial_cmp(&self, y: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add for psize
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, y: Self) -> Self::Output
[src]
Performs the +
operation.
impl Sub for psize
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, y: Self) -> Self::Output
[src]
Performs the -
operation.
impl Mul for psize
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, y: Self) -> Self::Output
[src]
Performs the *
operation.
impl Div for psize
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, y: Self) -> Self::Output
[src]
Performs the /
operation.
impl<'a> Add for &'a psize
[src]
type Output = psize
The resulting type after applying the +
operator.
fn add(self, y: Self) -> Self::Output
[src]
Performs the +
operation.
impl AddAssign for psize
[src]
fn add_assign(&mut self, y: Self)
[src]
Performs the +=
operation.
impl<'a> AddAssign<&'a psize> for psize
[src]
fn add_assign(&mut self, y: &'a Self)
[src]
Performs the +=
operation.
impl<'a> Sub for &'a psize
[src]
type Output = psize
The resulting type after applying the -
operator.
fn sub(self, y: Self) -> Self::Output
[src]
Performs the -
operation.
impl SubAssign for psize
[src]
fn sub_assign(&mut self, y: Self)
[src]
Performs the -=
operation.
impl<'a> SubAssign<&'a psize> for psize
[src]
fn sub_assign(&mut self, y: &'a Self)
[src]
Performs the -=
operation.
impl<'a> Mul for &'a psize
[src]
type Output = psize
The resulting type after applying the *
operator.
fn mul(self, y: Self) -> Self::Output
[src]
Performs the *
operation.
impl MulAssign for psize
[src]
fn mul_assign(&mut self, y: Self)
[src]
Performs the *=
operation.
impl<'a> MulAssign<&'a psize> for psize
[src]
fn mul_assign(&mut self, y: &'a Self)
[src]
Performs the *=
operation.
impl<'a> Div for &'a psize
[src]
type Output = psize
The resulting type after applying the /
operator.
fn div(self, y: Self) -> Self::Output
[src]
Performs the /
operation.
impl DivAssign for psize
[src]
fn div_assign(&mut self, y: Self)
[src]
Performs the /=
operation.
impl<'a> DivAssign<&'a psize> for psize
[src]
fn div_assign(&mut self, y: &'a Self)
[src]
Performs the /=
operation.