#[repr(u32)]pub enum PowerOfTwoThirtyTwoBit {
Show 32 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,
_65536 = 65_536,
_131072 = 131_072,
_262144 = 262_144,
_524288 = 524_288,
_1048576 = 1_048_576,
_2097152 = 2_097_152,
_4194304 = 4_194_304,
_8388608 = 8_388_608,
_16777216 = 16_777_216,
_33554432 = 33_554_432,
_67108864 = 67_108_864,
_134217728 = 134_217_728,
_268435456 = 268_435_456,
_536870912 = 536_870_912,
_1073741824 = 1_073_741_824,
_2147483648 = 2_147_483_648,
}
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
_65536 = 65_536
_131072 = 131_072
_262144 = 262_144
_524288 = 524_288
_1048576 = 1_048_576
_2097152 = 2_097_152
_4194304 = 4_194_304
_8388608 = 8_388_608
_16777216 = 16_777_216
_33554432 = 33_554_432
_67108864 = 67_108_864
_134217728 = 134_217_728
_268435456 = 268_435_456
_536870912 = 536_870_912
_1073741824 = 1_073_741_824
_2147483648 = 2_147_483_648
Implementations§
Source§impl PowerOfTwoThirtyTwoBit
impl PowerOfTwoThirtyTwoBit
pub fn isPowerOfTwo(value: u32) -> bool
pub unsafe fn from_u32_unchecked(value: u32) -> PowerOfTwoThirtyTwoBit
pub unsafe fn from_u32_panic(value: u32) -> PowerOfTwoThirtyTwoBit
pub unsafe fn from_u32(value: u32) -> Option<PowerOfTwoThirtyTwoBit>
Trait Implementations§
Source§impl Clone for PowerOfTwoThirtyTwoBit
impl Clone for PowerOfTwoThirtyTwoBit
Source§fn clone(&self) -> PowerOfTwoThirtyTwoBit
fn clone(&self) -> PowerOfTwoThirtyTwoBit
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 PowerOfTwoThirtyTwoBit
impl Debug for PowerOfTwoThirtyTwoBit
Source§impl Hash for PowerOfTwoThirtyTwoBit
impl Hash for PowerOfTwoThirtyTwoBit
Source§impl Ord for PowerOfTwoThirtyTwoBit
impl Ord for PowerOfTwoThirtyTwoBit
Source§fn cmp(&self, other: &PowerOfTwoThirtyTwoBit) -> Ordering
fn cmp(&self, other: &PowerOfTwoThirtyTwoBit) -> 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 PowerOfTwoThirtyTwoBit
impl PartialEq for PowerOfTwoThirtyTwoBit
Source§impl PartialOrd for PowerOfTwoThirtyTwoBit
impl PartialOrd for PowerOfTwoThirtyTwoBit
impl Copy for PowerOfTwoThirtyTwoBit
impl Eq for PowerOfTwoThirtyTwoBit
impl StructuralPartialEq for PowerOfTwoThirtyTwoBit
Auto Trait Implementations§
impl Freeze for PowerOfTwoThirtyTwoBit
impl RefUnwindSafe for PowerOfTwoThirtyTwoBit
impl Send for PowerOfTwoThirtyTwoBit
impl Sync for PowerOfTwoThirtyTwoBit
impl Unpin for PowerOfTwoThirtyTwoBit
impl UnwindSafe for PowerOfTwoThirtyTwoBit
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