std::num::FpCategory
pub enum FpCategory
- Kind
- enum
- Module
std::num- Since
- 1.0.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::num in the Rust reference. This page has 123 cards.
pub enum FpCategory
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[non_exhaustive]pub enum IntErrorKind
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct NonZero<T>(/* private fields */)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn abs(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn bit_width(self) -> NonZero<u32>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const BITS: u32 = u8::BITS
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_signed(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_unsigned(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_abs(self) -> Option<NonZero<i8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_add(self, other: u8) -> Option<NonZero<u8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_mul(self, other: NonZero<u8>) -> Option<NonZero<u8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_neg(self) -> Option<NonZero<i8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_next_power_of_two(self) -> Option<NonZero<u8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_pow(self, other: u32) -> Option<NonZero<u8>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_ones(self) -> NonZero<u32>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_ceil(self, rhs: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ascii(src: &[u8]) -> Result<NonZero<u8>, ParseIntError>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ascii_radix( src: &[u8], radix: u32, ) -> Result<NonZero<u8>, ParseIntError>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_be(x: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_le(x: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_mut(n: &mut T) -> Option<&mut NonZero<T>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_mut_unchecked(n: &mut T) -> &mut NonZero<T>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_str_radix( src: &str, radix: u32, ) -> Result<NonZero<u8>, ParseIntError>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn get(self) -> T
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn highest_one(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ilog2(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ilog10(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_negative(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_positive(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_power_of_two(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn isolate_highest_one(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn isolate_lowest_one(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn isqrt(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn leading_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn lowest_one(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MAX: NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn midpoint(self, rhs: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MIN: NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(n: T) -> Option<NonZero<T>>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn new_unchecked(n: T) -> NonZero<T>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn overflowing_abs(self) -> (NonZero<i8>, bool)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn overflowing_neg(self) -> (NonZero<i8>, bool)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn reverse_bits(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_left(self, n: u32) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_right(self, n: u32) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_abs(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_add(self, other: u8) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_mul(self, other: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_neg(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn saturating_pow(self, other: u32) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn swap_bytes(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_be(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_le(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trailing_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn unchecked_add(self, other: u8) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn unchecked_mul(self, other: NonZero<u8>) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn unsigned_abs(self) -> NonZero<u8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn wrapping_abs(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn wrapping_neg(self) -> NonZero<i8>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroI8 = NonZero<i8>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroI16 = NonZero<i16>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroI32 = NonZero<i32>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroI64 = NonZero<i64>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroI128 = NonZero<i128>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroIsize = NonZero<isize>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroU8 = NonZero<u8>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroU16 = NonZero<u16>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroU32 = NonZero<u32>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroU64 = NonZero<u64>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroU128 = NonZero<u128>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type NonZeroUsize = NonZero<usize>;
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ParseFloatError
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ParseIntError
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn kind(&self) -> &IntErrorKind
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[repr(transparent)]pub struct Saturating<T>(pub T)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn abs(self) -> Saturating<isize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const BITS: u32 = usize::BITS
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_ones(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_be(x: Saturating<usize>) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_le(x: Saturating<usize>) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_negative(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_positive(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_power_of_two(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn leading_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MAX: Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MIN: Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn pow(self, exp: u32) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn reverse_bits(self) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_left(self, n: u32) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_right(self, n: u32) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn signum(self) -> Saturating<isize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn swap_bytes(self) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_be(self) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_le(self) -> Saturating<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trailing_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct TryFromIntError(/* private fields */)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn kind(&self) -> &IntErrorKind
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[repr(transparent)]pub struct Wrapping<T>(pub T)
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn abs(self) -> Wrapping<isize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const BITS: u32 = usize::BITS
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_ones(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_be(x: Wrapping<usize>) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_le(x: Wrapping<usize>) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_negative(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_positive(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_power_of_two(self) -> bool
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn leading_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MAX: Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MIN: Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn next_power_of_two(self) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pow(self, exp: u32) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn reverse_bits(self) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_left(self, n: u32) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn rotate_right(self, n: u32) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn signum(self) -> Wrapping<isize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn swap_bytes(self) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_be(self) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_le(self) -> Wrapping<usize>
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trailing_zeros(self) -> u32
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe trait ZeroablePrimitive: Sized + Copy
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
type NonZeroInner: Copy
std::numSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.