Struct ux::u56

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

The 56-bit unsigned integer type.

Implementations§

source§

impl u56

source

pub const MAX: Self = _

source

pub const MIN: Self = _

source

pub const BITS: u32 = 56u32

source§

impl u56

source

pub fn min_value() -> u56

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

source

pub fn max_value() -> u56

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

source

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

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 u56

§

type Output = u56

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Binary for u56

source§

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

Formats the value using the given formatter.
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<'a> BitAnd for &'a u56

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAnd for u56

§

type Output = u56

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAndAssign for u56

source§

fn bitand_assign(&mut self, other: u56)

Performs the &= operation. Read more
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<'a> BitOr for &'a u56

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOr for u56

§

type Output = u56

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOrAssign for u56

source§

fn bitor_assign(&mut self, other: u56)

Performs the |= operation. Read more
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

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

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<'a> BitXor for &'a u56

§

type Output = <u56 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXor for u56

§

type Output = u56

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXorAssign for u56

source§

fn bitxor_assign(&mut self, other: u56)

Performs the ^= operation. Read more
source§

impl Clone for u56

source§

fn clone(&self) -> u56

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 u56

source§

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

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

impl Default for u56

source§

fn default() -> u56

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

impl Display for u56

source§

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

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

impl From<u1> for u56

source§

fn from(x: u1) -> u56

Converts to this type from the input type.
source§

impl From<u10> for u56

source§

fn from(x: u10) -> u56

Converts to this type from the input type.
source§

impl From<u11> for u56

source§

fn from(x: u11) -> u56

Converts to this type from the input type.
source§

impl From<u12> for u56

source§

fn from(x: u12) -> u56

Converts to this type from the input type.
source§

impl From<u13> for u56

source§

fn from(x: u13) -> u56

Converts to this type from the input type.
source§

impl From<u14> for u56

source§

fn from(x: u14) -> u56

Converts to this type from the input type.
source§

impl From<u15> for u56

source§

fn from(x: u15) -> u56

Converts to this type from the input type.
source§

impl From<u16> for u56

source§

fn from(x: u16) -> u56

Converts to this type from the input type.
source§

impl From<u17> for u56

source§

fn from(x: u17) -> u56

Converts to this type from the input type.
source§

impl From<u18> for u56

source§

fn from(x: u18) -> u56

Converts to this type from the input type.
source§

impl From<u19> for u56

source§

fn from(x: u19) -> u56

Converts to this type from the input type.
source§

impl From<u2> for u56

source§

fn from(x: u2) -> u56

Converts to this type from the input type.
source§

impl From<u20> for u56

source§

fn from(x: u20) -> u56

Converts to this type from the input type.
source§

impl From<u21> for u56

source§

fn from(x: u21) -> u56

Converts to this type from the input type.
source§

impl From<u22> for u56

source§

fn from(x: u22) -> u56

Converts to this type from the input type.
source§

impl From<u23> for u56

source§

fn from(x: u23) -> u56

Converts to this type from the input type.
source§

impl From<u24> for u56

source§

fn from(x: u24) -> u56

Converts to this type from the input type.
source§

impl From<u25> for u56

source§

fn from(x: u25) -> u56

Converts to this type from the input type.
source§

impl From<u26> for u56

source§

fn from(x: u26) -> u56

Converts to this type from the input type.
source§

impl From<u27> for u56

source§

fn from(x: u27) -> u56

Converts to this type from the input type.
source§

impl From<u28> for u56

source§

fn from(x: u28) -> u56

Converts to this type from the input type.
source§

impl From<u29> for u56

source§

fn from(x: u29) -> u56

Converts to this type from the input type.
source§

impl From<u3> for u56

source§

fn from(x: u3) -> u56

Converts to this type from the input type.
source§

impl From<u30> for u56

source§

fn from(x: u30) -> u56

Converts to this type from the input type.
source§

impl From<u31> for u56

source§

fn from(x: u31) -> u56

Converts to this type from the input type.
source§

impl From<u32> for u56

source§

fn from(x: u32) -> u56

Converts to this type from the input type.
source§

impl From<u33> for u56

source§

fn from(x: u33) -> u56

Converts to this type from the input type.
source§

impl From<u34> for u56

source§

fn from(x: u34) -> u56

Converts to this type from the input type.
source§

impl From<u35> for u56

source§

fn from(x: u35) -> u56

Converts to this type from the input type.
source§

impl From<u36> for u56

source§

fn from(x: u36) -> u56

Converts to this type from the input type.
source§

impl From<u37> for u56

source§

fn from(x: u37) -> u56

Converts to this type from the input type.
source§

impl From<u38> for u56

source§

fn from(x: u38) -> u56

Converts to this type from the input type.
source§

impl From<u39> for u56

source§

fn from(x: u39) -> u56

Converts to this type from the input type.
source§

impl From<u4> for u56

source§

fn from(x: u4) -> u56

Converts to this type from the input type.
source§

impl From<u40> for u56

source§

fn from(x: u40) -> u56

Converts to this type from the input type.
source§

impl From<u41> for u56

source§

fn from(x: u41) -> u56

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<u43> for u56

source§

fn from(x: u43) -> u56

Converts to this type from the input type.
source§

impl From<u44> for u56

source§

fn from(x: u44) -> u56

Converts to this type from the input type.
source§

impl From<u45> for u56

source§

fn from(x: u45) -> u56

Converts to this type from the input type.
source§

impl From<u46> for u56

source§

fn from(x: u46) -> u56

Converts to this type from the input type.
source§

impl From<u47> for u56

source§

fn from(x: u47) -> u56

Converts to this type from the input type.
source§

impl From<u48> for u56

source§

fn from(x: u48) -> u56

Converts to this type from the input type.
source§

impl From<u49> for u56

source§

fn from(x: u49) -> u56

Converts to this type from the input type.
source§

impl From<u5> for u56

source§

fn from(x: u5) -> u56

Converts to this type from the input type.
source§

impl From<u50> for u56

source§

fn from(x: u50) -> u56

Converts to this type from the input type.
source§

impl From<u51> for u56

source§

fn from(x: u51) -> u56

Converts to this type from the input type.
source§

impl From<u52> for u56

source§

fn from(x: u52) -> u56

Converts to this type from the input type.
source§

impl From<u53> for u56

source§

fn from(x: u53) -> u56

Converts to this type from the input type.
source§

impl From<u54> for u56

source§

fn from(x: u54) -> u56

Converts to this type from the input type.
source§

impl From<u55> for u56

source§

fn from(x: u55) -> u56

Converts to this type from the input type.
source§

impl From<u56> for u57

source§

fn from(x: u56) -> u57

Converts to this type from the input type.
source§

impl From<u56> for u58

source§

fn from(x: u56) -> u58

Converts to this type from the input type.
source§

impl From<u56> for u59

source§

fn from(x: u56) -> u59

Converts to this type from the input type.
source§

impl From<u56> for u60

source§

fn from(x: u56) -> u60

Converts to this type from the input type.
source§

impl From<u56> for u61

source§

fn from(x: u56) -> u61

Converts to this type from the input type.
source§

impl From<u56> for u62

source§

fn from(x: u56) -> u62

Converts to this type from the input type.
source§

impl From<u56> for u63

source§

fn from(x: u56) -> u63

Converts to this type from the input type.
source§

impl From<u56> for u64

source§

fn from(x: u56) -> u64

Converts to this type from the input type.
source§

impl From<u6> for u56

source§

fn from(x: u6) -> u56

Converts to this type from the input type.
source§

impl From<u7> for u56

source§

fn from(x: u7) -> u56

Converts to this type from the input type.
source§

impl From<u8> for u56

source§

fn from(x: u8) -> u56

Converts to this type from the input type.
source§

impl From<u9> for u56

source§

fn from(x: u9) -> u56

Converts to this type from the input type.
source§

impl Hash for u56

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 u56

source§

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

Formats the value using the given formatter.
source§

impl<'a> Not for &'a u56

§

type Output = <u56 as Not>::Output

The resulting type after applying the ! operator.
source§

fn not(self) -> u56

Performs the unary ! operation. Read more
source§

impl Not for u56

§

type Output = u56

The resulting type after applying the ! operator.
source§

fn not(self) -> u56

Performs the unary ! operation. Read more
source§

impl Octal for u56

source§

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

Formats the value using the given formatter.
source§

impl Ord for u56

source§

fn cmp(&self, other: &u56) -> 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 u56

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 u56

source§

fn partial_cmp(&self, other: &u56) -> 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 u56
where u64: Shl<T, Output = u64>,

§

type Output = u56

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

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

Performs the << operation. Read more
source§

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

source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
source§

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

§

type Output = u56

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

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

Performs the >> operation. Read more
source§

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

source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
source§

impl Sub for u56

§

type Output = u56

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl TryFrom<u56> for u1

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u10

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u11

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u12

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u13

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u14

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u15

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u16

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u17

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u18

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u19

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u2

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u20

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u21

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u22

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u23

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u24

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u25

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u26

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u27

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u28

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u29

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u3

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u30

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u31

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u32

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u33

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u34

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u35

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u36

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u37

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u38

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u39

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u4

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u40

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u41

§

type Error = TryFromIntError

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

fn try_from(x: u56) -> Result<u41, 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<u56> for u43

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u44

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u45

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u46

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u47

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u48

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u49

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u5

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u50

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u51

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u52

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u53

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u54

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u55

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u6

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u8

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for u9

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u56> for usize

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u57> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u58> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u59> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u60> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u61> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u62> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u63> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u64> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<usize> for u56

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl UpperHex for u56

source§

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

Formats the value using the given formatter.
source§

impl Copy for u56

source§

impl Eq for u56

Auto Trait Implementations§

§

impl Freeze for u56

§

impl RefUnwindSafe for u56

§

impl Send for u56

§

impl Sync for u56

§

impl Unpin for u56

§

impl UnwindSafe for u56

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.