#[repr(u16)]pub enum PowerOfTwoSixteenBit {
Show 16 variants
_1 = 1,
_2 = 2,
_4 = 4,
_8 = 8,
_16 = 16,
_32 = 32,
_64 = 64,
_128 = 128,
_256 = 256,
_512 = 512,
_1024 = 1_024,
_2048 = 2_048,
_4096 = 4_096,
_8192 = 8_192,
_16384 = 16_384,
_32768 = 32_768,
}Variants§
_1 = 1
_2 = 2
_4 = 4
_8 = 8
_16 = 16
_32 = 32
_64 = 64
_128 = 128
_256 = 256
_512 = 512
_1024 = 1_024
_2048 = 2_048
_4096 = 4_096
_8192 = 8_192
_16384 = 16_384
_32768 = 32_768
Implementations§
Source§impl PowerOfTwoSixteenBit
impl PowerOfTwoSixteenBit
pub fn isPowerOfTwo(value: u16) -> bool
pub unsafe fn from_u16_unchecked(value: u16) -> PowerOfTwoSixteenBit
pub unsafe fn from_u16_panic(value: u16) -> PowerOfTwoSixteenBit
pub unsafe fn from_u16_panic_withZeroAs<F>(
value: u16,
zeroIs: F,
) -> PowerOfTwoSixteenBitwhere
F: Fn() -> PowerOfTwoSixteenBit,
pub unsafe fn from_u16(value: u16) -> Option<PowerOfTwoSixteenBit>
Trait Implementations§
Source§impl Clone for PowerOfTwoSixteenBit
impl Clone for PowerOfTwoSixteenBit
Source§fn clone(&self) -> PowerOfTwoSixteenBit
fn clone(&self) -> PowerOfTwoSixteenBit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerOfTwoSixteenBit
impl Debug for PowerOfTwoSixteenBit
Source§impl Hash for PowerOfTwoSixteenBit
impl Hash for PowerOfTwoSixteenBit
Source§impl Ord for PowerOfTwoSixteenBit
impl Ord for PowerOfTwoSixteenBit
Source§fn cmp(&self, other: &PowerOfTwoSixteenBit) -> Ordering
fn cmp(&self, other: &PowerOfTwoSixteenBit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PowerOfTwoSixteenBit
impl PartialEq for PowerOfTwoSixteenBit
Source§impl PartialOrd for PowerOfTwoSixteenBit
impl PartialOrd for PowerOfTwoSixteenBit
impl Copy for PowerOfTwoSixteenBit
impl Eq for PowerOfTwoSixteenBit
impl StructuralPartialEq for PowerOfTwoSixteenBit
Auto Trait Implementations§
impl Freeze for PowerOfTwoSixteenBit
impl RefUnwindSafe for PowerOfTwoSixteenBit
impl Send for PowerOfTwoSixteenBit
impl Sync for PowerOfTwoSixteenBit
impl Unpin for PowerOfTwoSixteenBit
impl UnwindSafe for PowerOfTwoSixteenBit
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