Struct ux::u42

source ·
pub struct u42(/* private fields */);
Expand description

The 42-bit unsigned integer type.

Implementations§

source§

impl u42

source

pub const MAX: Self = _

source

pub const MIN: Self = _

source

pub const BITS: u32 = 42u32

source§

impl u42

source

pub fn min_value() -> u42

Returns the smallest value that can be represented by this integer type.

source

pub fn max_value() -> u42

Returns the largest value that can be represented by this integer type.

source

pub const fn new(value: u64) -> u42

Crates a new variable

This function mainly exists as there is currently not a better way to construct these types. May be deprecated or removed if a better way to construct these types becomes available.

§Examples

Basic usage:

use ux::*;

assert_eq!(u31::new(64), u31::from(64u8));
§Panic

This function will panic if value is not representable by this type

source

pub fn wrapping_sub(self, rhs: Self) -> Self

Wrapping (modular) subtraction. Computes self - other, wrapping around at the boundary of the type.

§Examples

Basic usage:

use ux::*;

assert_eq!(i5::MIN.wrapping_sub(i5::new(1)), i5::MAX);

assert_eq!(i5::new(-10).wrapping_sub(i5::new(5)), i5::new(-15));
assert_eq!(i5::new(-15).wrapping_sub(i5::new(5)), i5::new(12));
source

pub fn wrapping_add(self, rhs: Self) -> Self

Wrapping (modular) addition. Computes self + other, wrapping around at the boundary of the type.

§Examples

Basic usage:

use ux::*;

assert_eq!(i5::MAX.wrapping_add(i5::new(1)), i5::MIN);

assert_eq!(i5::new(10).wrapping_add(i5::new(5)), i5::new(15));
assert_eq!(i5::new(15).wrapping_add(i5::new(5)), i5::new(-12));

Trait Implementations§

source§

impl Add for u42

§

type Output = u42

The resulting type after applying the + operator.
source§

fn add(self, other: u42) -> u42

Performs the + operation. Read more
source§

impl Binary for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<'a> BitAnd<&'a u42> for u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &'a u42) -> Self::Output

Performs the & operation. Read more
source§

impl<'a> BitAnd<u42> for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: u42) -> Self::Output

Performs the & operation. Read more
source§

impl<'a> BitAnd for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &'a u42) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd for u42

§

type Output = u42

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: u42) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign for u42

source§

fn bitand_assign(&mut self, other: u42)

Performs the &= operation. Read more
source§

impl<'a> BitOr<&'a u42> for u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &'a u42) -> Self::Output

Performs the | operation. Read more
source§

impl<'a> BitOr<u42> for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: u42) -> Self::Output

Performs the | operation. Read more
source§

impl<'a> BitOr for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &'a u42) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr for u42

§

type Output = u42

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: u42) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign for u42

source§

fn bitor_assign(&mut self, other: u42)

Performs the |= operation. Read more
source§

impl<'a> BitXor<&'a u42> for u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &'a u42) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXor<u42> for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: u42) -> Self::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXor for &'a u42

§

type Output = <u42 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &'a u42) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXor for u42

§

type Output = u42

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: u42) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign for u42

source§

fn bitxor_assign(&mut self, other: u42)

Performs the ^= operation. Read more
source§

impl Clone for u42

source§

fn clone(&self) -> u42

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for u42

source§

fn default() -> u42

Returns the “default value” for a type. Read more
source§

impl Display for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<u1> for u42

source§

fn from(x: u1) -> u42

Converts to this type from the input type.
source§

impl From<u10> for u42

source§

fn from(x: u10) -> u42

Converts to this type from the input type.
source§

impl From<u11> for u42

source§

fn from(x: u11) -> u42

Converts to this type from the input type.
source§

impl From<u12> for u42

source§

fn from(x: u12) -> u42

Converts to this type from the input type.
source§

impl From<u13> for u42

source§

fn from(x: u13) -> u42

Converts to this type from the input type.
source§

impl From<u14> for u42

source§

fn from(x: u14) -> u42

Converts to this type from the input type.
source§

impl From<u15> for u42

source§

fn from(x: u15) -> u42

Converts to this type from the input type.
source§

impl From<u16> for u42

source§

fn from(x: u16) -> u42

Converts to this type from the input type.
source§

impl From<u17> for u42

source§

fn from(x: u17) -> u42

Converts to this type from the input type.
source§

impl From<u18> for u42

source§

fn from(x: u18) -> u42

Converts to this type from the input type.
source§

impl From<u19> for u42

source§

fn from(x: u19) -> u42

Converts to this type from the input type.
source§

impl From<u2> for u42

source§

fn from(x: u2) -> u42

Converts to this type from the input type.
source§

impl From<u20> for u42

source§

fn from(x: u20) -> u42

Converts to this type from the input type.
source§

impl From<u21> for u42

source§

fn from(x: u21) -> u42

Converts to this type from the input type.
source§

impl From<u22> for u42

source§

fn from(x: u22) -> u42

Converts to this type from the input type.
source§

impl From<u23> for u42

source§

fn from(x: u23) -> u42

Converts to this type from the input type.
source§

impl From<u24> for u42

source§

fn from(x: u24) -> u42

Converts to this type from the input type.
source§

impl From<u25> for u42

source§

fn from(x: u25) -> u42

Converts to this type from the input type.
source§

impl From<u26> for u42

source§

fn from(x: u26) -> u42

Converts to this type from the input type.
source§

impl From<u27> for u42

source§

fn from(x: u27) -> u42

Converts to this type from the input type.
source§

impl From<u28> for u42

source§

fn from(x: u28) -> u42

Converts to this type from the input type.
source§

impl From<u29> for u42

source§

fn from(x: u29) -> u42

Converts to this type from the input type.
source§

impl From<u3> for u42

source§

fn from(x: u3) -> u42

Converts to this type from the input type.
source§

impl From<u30> for u42

source§

fn from(x: u30) -> u42

Converts to this type from the input type.
source§

impl From<u31> for u42

source§

fn from(x: u31) -> u42

Converts to this type from the input type.
source§

impl From<u32> for u42

source§

fn from(x: u32) -> u42

Converts to this type from the input type.
source§

impl From<u33> for u42

source§

fn from(x: u33) -> u42

Converts to this type from the input type.
source§

impl From<u34> for u42

source§

fn from(x: u34) -> u42

Converts to this type from the input type.
source§

impl From<u35> for u42

source§

fn from(x: u35) -> u42

Converts to this type from the input type.
source§

impl From<u36> for u42

source§

fn from(x: u36) -> u42

Converts to this type from the input type.
source§

impl From<u37> for u42

source§

fn from(x: u37) -> u42

Converts to this type from the input type.
source§

impl From<u38> for u42

source§

fn from(x: u38) -> u42

Converts to this type from the input type.
source§

impl From<u39> for u42

source§

fn from(x: u39) -> u42

Converts to this type from the input type.
source§

impl From<u4> for u42

source§

fn from(x: u4) -> u42

Converts to this type from the input type.
source§

impl From<u40> for u42

source§

fn from(x: u40) -> u42

Converts to this type from the input type.
source§

impl From<u41> for u42

source§

fn from(x: u41) -> u42

Converts to this type from the input type.
source§

impl From<u42> for u43

source§

fn from(x: u42) -> u43

Converts to this type from the input type.
source§

impl From<u42> for u44

source§

fn from(x: u42) -> u44

Converts to this type from the input type.
source§

impl From<u42> for u45

source§

fn from(x: u42) -> u45

Converts to this type from the input type.
source§

impl From<u42> for u46

source§

fn from(x: u42) -> u46

Converts to this type from the input type.
source§

impl From<u42> for u47

source§

fn from(x: u42) -> u47

Converts to this type from the input type.
source§

impl From<u42> for u48

source§

fn from(x: u42) -> u48

Converts to this type from the input type.
source§

impl From<u42> for u49

source§

fn from(x: u42) -> u49

Converts to this type from the input type.
source§

impl From<u42> for u50

source§

fn from(x: u42) -> u50

Converts to this type from the input type.
source§

impl From<u42> for u51

source§

fn from(x: u42) -> u51

Converts to this type from the input type.
source§

impl From<u42> for u52

source§

fn from(x: u42) -> u52

Converts to this type from the input type.
source§

impl From<u42> for u53

source§

fn from(x: u42) -> u53

Converts to this type from the input type.
source§

impl From<u42> for u54

source§

fn from(x: u42) -> u54

Converts to this type from the input type.
source§

impl From<u42> for u55

source§

fn from(x: u42) -> u55

Converts to this type from the input type.
source§

impl From<u42> for u56

source§

fn from(x: u42) -> u56

Converts to this type from the input type.
source§

impl From<u42> for u57

source§

fn from(x: u42) -> u57

Converts to this type from the input type.
source§

impl From<u42> for u58

source§

fn from(x: u42) -> u58

Converts to this type from the input type.
source§

impl From<u42> for u59

source§

fn from(x: u42) -> u59

Converts to this type from the input type.
source§

impl From<u42> for u60

source§

fn from(x: u42) -> u60

Converts to this type from the input type.
source§

impl From<u42> for u61

source§

fn from(x: u42) -> u61

Converts to this type from the input type.
source§

impl From<u42> for u62

source§

fn from(x: u42) -> u62

Converts to this type from the input type.
source§

impl From<u42> for u63

source§

fn from(x: u42) -> u63

Converts to this type from the input type.
source§

impl From<u42> for u64

source§

fn from(x: u42) -> u64

Converts to this type from the input type.
source§

impl From<u5> for u42

source§

fn from(x: u5) -> u42

Converts to this type from the input type.
source§

impl From<u6> for u42

source§

fn from(x: u6) -> u42

Converts to this type from the input type.
source§

impl From<u7> for u42

source§

fn from(x: u7) -> u42

Converts to this type from the input type.
source§

impl From<u8> for u42

source§

fn from(x: u8) -> u42

Converts to this type from the input type.
source§

impl From<u9> for u42

source§

fn from(x: u9) -> u42

Converts to this type from the input type.
source§

impl Hash for u42

source§

fn hash<H: Hasher>(&self, h: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl LowerHex for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl<'a> Not for &'a u42

§

type Output = <u42 as Not>::Output

The resulting type after applying the ! operator.
source§

fn not(self) -> u42

Performs the unary ! operation. Read more
source§

impl Not for u42

§

type Output = u42

The resulting type after applying the ! operator.
source§

fn not(self) -> u42

Performs the unary ! operation. Read more
source§

impl Octal for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl Ord for u42

source§

fn cmp(&self, other: &u42) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for u42

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for u42

source§

fn partial_cmp(&self, other: &u42) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T> Shl<T> for u42
where u64: Shl<T, Output = u64>,

§

type Output = u42

The resulting type after applying the << operator.
source§

fn shl(self, rhs: T) -> u42

Performs the << operation. Read more
source§

impl<T> ShlAssign<T> for u42
where u64: ShlAssign<T>,

source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
source§

impl<T> Shr<T> for u42
where u64: Shr<T, Output = u64>,

§

type Output = u42

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: T) -> u42

Performs the >> operation. Read more
source§

impl<T> ShrAssign<T> for u42
where u64: ShrAssign<T>,

source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
source§

impl Sub for u42

§

type Output = u42

The resulting type after applying the - operator.
source§

fn sub(self, other: u42) -> u42

Performs the - operation. Read more
source§

impl TryFrom<u42> for u1

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u1, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u10

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u10, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u11

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u11, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u12

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u12, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u13

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u13, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u14

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u14, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u15

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u15, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u16

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u16, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u17

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u17, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u18

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u18, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u19

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u19, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u2

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u2, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u20

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u20, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u21

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u21, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u22

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u22, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u23

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u23, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u24

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u24, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u25

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u25, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u26

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u26, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u27

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u27, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u28

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u28, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u29

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u29, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u3

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u3, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u30

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u30, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u31

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u31, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u32

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u32, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u33

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u33, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u34

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u34, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u35

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u35, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u36

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u36, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u37

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u37, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u38

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u38, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u39

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u39, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u4

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u4, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u40

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u40, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u41

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u41, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u5

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u5, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u6

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u6, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u7

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u7, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u8

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u8, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for u9

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<u9, Self::Error>

Performs the conversion.
source§

impl TryFrom<u42> for usize

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u42) -> Result<usize, Self::Error>

Performs the conversion.
source§

impl TryFrom<u43> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u43) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u44> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u44) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u45> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u45) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u46> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u46) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u47> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u47) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u48> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u48) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u49> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u49) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u50> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u50) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u51> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u51) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u52> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u52) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u53> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u53) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u54> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u54) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u55> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u55) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u56> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u56) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u57> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u57) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u58> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u58) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u59> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u59) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u60> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u60) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u61> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u61) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u62> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u62) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u63> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u63) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<u64> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: u64) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl TryFrom<usize> for u42

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
source§

fn try_from(x: usize) -> Result<u42, Self::Error>

Performs the conversion.
source§

impl UpperHex for u42

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl Copy for u42

source§

impl Eq for u42

Auto Trait Implementations§

§

impl Freeze for u42

§

impl RefUnwindSafe for u42

§

impl Send for u42

§

impl Sync for u42

§

impl Unpin for u42

§

impl UnwindSafe for u42

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.