Enum rust_extra::powersOfTwo::PowerOfTwoThirtyTwoBit
[−]
[src]
#[repr(u32)]pub enum PowerOfTwoThirtyTwoBit { _1, _2, _4, _8, _16, _32, _64, _128, _256, _512, _1024, _2048, _4096, _8192, _16384, _32768, _65536, _131072, _262144, _524288, _1048576, _2097152, _4194304, _8388608, _16777216, _33554432, _67108864, _134217728, _268435456, _536870912, _1073741824, _2147483648, }
Variants
_1
_2
_4
_8
_16
_32
_64
_128
_256
_512
_1024
_2048
_4096
_8192
_16384
_32768
_65536
_131072
_262144
_524288
_1048576
_2097152
_4194304
_8388608
_16777216
_33554432
_67108864
_134217728
_268435456
_536870912
_1073741824
_2147483648
Methods
impl PowerOfTwoThirtyTwoBit
[src]
fn isPowerOfTwo(value: u32) -> bool
unsafe fn from_u32_unchecked(value: u32) -> PowerOfTwoThirtyTwoBit
unsafe fn from_u32_panic(value: u32) -> PowerOfTwoThirtyTwoBit
unsafe fn from_u32(value: u32) -> Option<PowerOfTwoThirtyTwoBit>
Trait Implementations
impl Debug for PowerOfTwoThirtyTwoBit
[src]
impl Copy for PowerOfTwoThirtyTwoBit
[src]
impl Clone for PowerOfTwoThirtyTwoBit
[src]
fn clone(&self) -> PowerOfTwoThirtyTwoBit
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 PartialEq for PowerOfTwoThirtyTwoBit
[src]
fn eq(&self, __arg_0: &PowerOfTwoThirtyTwoBit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for PowerOfTwoThirtyTwoBit
[src]
impl PartialOrd for PowerOfTwoThirtyTwoBit
[src]
fn partial_cmp(&self, __arg_0: &PowerOfTwoThirtyTwoBit) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
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
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
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
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PowerOfTwoThirtyTwoBit
[src]
fn cmp(&self, __arg_0: &PowerOfTwoThirtyTwoBit) -> Ordering
This method returns an Ordering
between self
and other
. Read more