Struct ux::u7

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

The 7-bit unsigned integer type.

Implementations§

source§

impl u7

source

pub const MAX: Self = _

source

pub const MIN: Self = _

source

pub const BITS: u32 = 7u32

source§

impl u7

source

pub fn min_value() -> u7

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

source

pub fn max_value() -> u7

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

source

pub const fn new(value: u8) -> u7

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 u7

§

type Output = u7

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Binary for u7

source§

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

Formats the value using the given formatter.
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<'a> BitAnd for &'a u7

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAnd for u7

§

type Output = u7

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAndAssign for u7

source§

fn bitand_assign(&mut self, other: u7)

Performs the &= operation. Read more
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<'a> BitOr for &'a u7

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOr for u7

§

type Output = u7

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOrAssign for u7

source§

fn bitor_assign(&mut self, other: u7)

Performs the |= operation. Read more
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

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

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<'a> BitXor for &'a u7

§

type Output = <u7 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXor for u7

§

type Output = u7

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXorAssign for u7

source§

fn bitxor_assign(&mut self, other: u7)

Performs the ^= operation. Read more
source§

impl Clone for u7

source§

fn clone(&self) -> u7

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 u7

source§

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

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

impl Default for u7

source§

fn default() -> u7

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

impl Display for u7

source§

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

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

impl From<u1> for u7

source§

fn from(x: u1) -> u7

Converts to this type from the input type.
source§

impl From<u2> for u7

source§

fn from(x: u2) -> u7

Converts to this type from the input type.
source§

impl From<u3> for u7

source§

fn from(x: u3) -> u7

Converts to this type from the input type.
source§

impl From<u4> for u7

source§

fn from(x: u4) -> u7

Converts to this type from the input type.
source§

impl From<u5> for u7

source§

fn from(x: u5) -> u7

Converts to this type from the input type.
source§

impl From<u6> for u7

source§

fn from(x: u6) -> u7

Converts to this type from the input type.
source§

impl From<u7> for u10

source§

fn from(x: u7) -> u10

Converts to this type from the input type.
source§

impl From<u7> for u11

source§

fn from(x: u7) -> u11

Converts to this type from the input type.
source§

impl From<u7> for u12

source§

fn from(x: u7) -> u12

Converts to this type from the input type.
source§

impl From<u7> for u13

source§

fn from(x: u7) -> u13

Converts to this type from the input type.
source§

impl From<u7> for u14

source§

fn from(x: u7) -> u14

Converts to this type from the input type.
source§

impl From<u7> for u15

source§

fn from(x: u7) -> u15

Converts to this type from the input type.
source§

impl From<u7> for u16

source§

fn from(x: u7) -> u16

Converts to this type from the input type.
source§

impl From<u7> for u17

source§

fn from(x: u7) -> u17

Converts to this type from the input type.
source§

impl From<u7> for u18

source§

fn from(x: u7) -> u18

Converts to this type from the input type.
source§

impl From<u7> for u19

source§

fn from(x: u7) -> u19

Converts to this type from the input type.
source§

impl From<u7> for u20

source§

fn from(x: u7) -> u20

Converts to this type from the input type.
source§

impl From<u7> for u21

source§

fn from(x: u7) -> u21

Converts to this type from the input type.
source§

impl From<u7> for u22

source§

fn from(x: u7) -> u22

Converts to this type from the input type.
source§

impl From<u7> for u23

source§

fn from(x: u7) -> u23

Converts to this type from the input type.
source§

impl From<u7> for u24

source§

fn from(x: u7) -> u24

Converts to this type from the input type.
source§

impl From<u7> for u25

source§

fn from(x: u7) -> u25

Converts to this type from the input type.
source§

impl From<u7> for u26

source§

fn from(x: u7) -> u26

Converts to this type from the input type.
source§

impl From<u7> for u27

source§

fn from(x: u7) -> u27

Converts to this type from the input type.
source§

impl From<u7> for u28

source§

fn from(x: u7) -> u28

Converts to this type from the input type.
source§

impl From<u7> for u29

source§

fn from(x: u7) -> u29

Converts to this type from the input type.
source§

impl From<u7> for u30

source§

fn from(x: u7) -> u30

Converts to this type from the input type.
source§

impl From<u7> for u31

source§

fn from(x: u7) -> u31

Converts to this type from the input type.
source§

impl From<u7> for u32

source§

fn from(x: u7) -> u32

Converts to this type from the input type.
source§

impl From<u7> for u33

source§

fn from(x: u7) -> u33

Converts to this type from the input type.
source§

impl From<u7> for u34

source§

fn from(x: u7) -> u34

Converts to this type from the input type.
source§

impl From<u7> for u35

source§

fn from(x: u7) -> u35

Converts to this type from the input type.
source§

impl From<u7> for u36

source§

fn from(x: u7) -> u36

Converts to this type from the input type.
source§

impl From<u7> for u37

source§

fn from(x: u7) -> u37

Converts to this type from the input type.
source§

impl From<u7> for u38

source§

fn from(x: u7) -> u38

Converts to this type from the input type.
source§

impl From<u7> for u39

source§

fn from(x: u7) -> u39

Converts to this type from the input type.
source§

impl From<u7> for u40

source§

fn from(x: u7) -> u40

Converts to this type from the input type.
source§

impl From<u7> for u41

source§

fn from(x: u7) -> u41

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

source§

fn from(x: u7) -> u43

Converts to this type from the input type.
source§

impl From<u7> for u44

source§

fn from(x: u7) -> u44

Converts to this type from the input type.
source§

impl From<u7> for u45

source§

fn from(x: u7) -> u45

Converts to this type from the input type.
source§

impl From<u7> for u46

source§

fn from(x: u7) -> u46

Converts to this type from the input type.
source§

impl From<u7> for u47

source§

fn from(x: u7) -> u47

Converts to this type from the input type.
source§

impl From<u7> for u48

source§

fn from(x: u7) -> u48

Converts to this type from the input type.
source§

impl From<u7> for u49

source§

fn from(x: u7) -> u49

Converts to this type from the input type.
source§

impl From<u7> for u50

source§

fn from(x: u7) -> u50

Converts to this type from the input type.
source§

impl From<u7> for u51

source§

fn from(x: u7) -> u51

Converts to this type from the input type.
source§

impl From<u7> for u52

source§

fn from(x: u7) -> u52

Converts to this type from the input type.
source§

impl From<u7> for u53

source§

fn from(x: u7) -> u53

Converts to this type from the input type.
source§

impl From<u7> for u54

source§

fn from(x: u7) -> u54

Converts to this type from the input type.
source§

impl From<u7> for u55

source§

fn from(x: u7) -> u55

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<u7> for u57

source§

fn from(x: u7) -> u57

Converts to this type from the input type.
source§

impl From<u7> for u58

source§

fn from(x: u7) -> u58

Converts to this type from the input type.
source§

impl From<u7> for u59

source§

fn from(x: u7) -> u59

Converts to this type from the input type.
source§

impl From<u7> for u60

source§

fn from(x: u7) -> u60

Converts to this type from the input type.
source§

impl From<u7> for u61

source§

fn from(x: u7) -> u61

Converts to this type from the input type.
source§

impl From<u7> for u62

source§

fn from(x: u7) -> u62

Converts to this type from the input type.
source§

impl From<u7> for u63

source§

fn from(x: u7) -> u63

Converts to this type from the input type.
source§

impl From<u7> for u64

source§

fn from(x: u7) -> u64

Converts to this type from the input type.
source§

impl From<u7> for u8

source§

fn from(x: u7) -> u8

Converts to this type from the input type.
source§

impl From<u7> for u9

source§

fn from(x: u7) -> u9

Converts to this type from the input type.
source§

impl Hash for u7

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 u7

source§

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

Formats the value using the given formatter.
source§

impl<'a> Not for &'a u7

§

type Output = <u7 as Not>::Output

The resulting type after applying the ! operator.
source§

fn not(self) -> u7

Performs the unary ! operation. Read more
source§

impl Not for u7

§

type Output = u7

The resulting type after applying the ! operator.
source§

fn not(self) -> u7

Performs the unary ! operation. Read more
source§

impl Octal for u7

source§

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

Formats the value using the given formatter.
source§

impl Ord for u7

source§

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

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 u7

source§

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

§

type Output = u7

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

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

Performs the << operation. Read more
source§

impl<T> ShlAssign<T> for u7
where u8: ShlAssign<T>,

source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
source§

impl<T> Shr<T> for u7
where u8: Shr<T, Output = u8>,

§

type Output = u7

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

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

Performs the >> operation. Read more
source§

impl<T> ShrAssign<T> for u7
where u8: ShrAssign<T>,

source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
source§

impl Sub for u7

§

type Output = u7

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl TryFrom<u10> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u11> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u12> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u13> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u14> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u15> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u16> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u17> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u18> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u19> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u20> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u21> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u22> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u23> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u24> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u25> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u26> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u27> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u28> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u29> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u30> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u31> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u32> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u33> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u34> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u35> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u36> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u37> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u38> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u39> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u40> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u41> for u7

§

type Error = TryFromIntError

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

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

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u44> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u45> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u46> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u47> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u48> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u49> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u50> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u51> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u52> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u53> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u54> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u55> for u7

§

type Error = TryFromIntError

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

fn try_from(x: u55) -> Result<u7, 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<u57> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u58> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u59> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u60> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u61> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u62> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u63> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u64> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u1

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u2

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u3

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u4

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u5

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for u6

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u7> for usize

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u8> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u9> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<usize> for u7

§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl UpperHex for u7

source§

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

Formats the value using the given formatter.
source§

impl Copy for u7

source§

impl Eq for u7

Auto Trait Implementations§

§

impl Freeze for u7

§

impl RefUnwindSafe for u7

§

impl Send for u7

§

impl Sync for u7

§

impl Unpin for u7

§

impl UnwindSafe for u7

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.