Enum rust_extra::powersOfTwo::PowerOfTwoSixteenBit
[−]
[src]
#[repr(u16)]pub enum PowerOfTwoSixteenBit { _1, _2, _4, _8, _16, _32, _64, _128, _256, _512, _1024, _2048, _4096, _8192, _16384, _32768, }
Variants
_1
_2
_4
_8
_16
_32
_64
_128
_256
_512
_1024
_2048
_4096
_8192
_16384
_32768
Methods
impl PowerOfTwoSixteenBit
[src]
fn isPowerOfTwo(value: u16) -> bool
unsafe fn from_u16_unchecked(value: u16) -> PowerOfTwoSixteenBit
unsafe fn from_u16_panic(value: u16) -> PowerOfTwoSixteenBit
unsafe fn from_u16_panic_withZeroAs<F>(
value: u16,
zeroIs: F
) -> PowerOfTwoSixteenBit where
F: Fn() -> PowerOfTwoSixteenBit,
value: u16,
zeroIs: F
) -> PowerOfTwoSixteenBit where
F: Fn() -> PowerOfTwoSixteenBit,
unsafe fn from_u16(value: u16) -> Option<PowerOfTwoSixteenBit>
Trait Implementations
impl Debug for PowerOfTwoSixteenBit
[src]
impl Copy for PowerOfTwoSixteenBit
[src]
impl Clone for PowerOfTwoSixteenBit
[src]
fn clone(&self) -> PowerOfTwoSixteenBit
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 PowerOfTwoSixteenBit
[src]
fn eq(&self, __arg_0: &PowerOfTwoSixteenBit) -> 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 PowerOfTwoSixteenBit
[src]
impl PartialOrd for PowerOfTwoSixteenBit
[src]
fn partial_cmp(&self, __arg_0: &PowerOfTwoSixteenBit) -> 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 PowerOfTwoSixteenBit
[src]
fn cmp(&self, __arg_0: &PowerOfTwoSixteenBit) -> Ordering
This method returns an Ordering
between self
and other
. Read more