Struct ux::i50

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

The 50-bit signed integer type.

Implementations§

source§

impl i50

The 50-bit signed integer type.

source

pub const MAX: Self = _

source

pub const MIN: Self = _

source

pub const BITS: u32 = 50u32

source§

impl i50

source

pub fn min_value() -> i50

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

source

pub fn max_value() -> i50

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

source

pub const fn new(value: i64) -> i50

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 i50

§

type Output = i50

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Binary for i50

source§

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

Formats the value using the given formatter.
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl<'a> BitAnd for &'a i50

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAnd for i50

§

type Output = i50

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAndAssign for i50

source§

fn bitand_assign(&mut self, other: i50)

Performs the &= operation. Read more
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl<'a> BitOr for &'a i50

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOr for i50

§

type Output = i50

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOrAssign for i50

source§

fn bitor_assign(&mut self, other: i50)

Performs the |= operation. Read more
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

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

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl<'a> BitXor for &'a i50

§

type Output = <i50 as BitOr>::Output

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXor for i50

§

type Output = i50

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXorAssign for i50

source§

fn bitxor_assign(&mut self, other: i50)

Performs the ^= operation. Read more
source§

impl Clone for i50

source§

fn clone(&self) -> i50

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 i50

source§

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

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

impl Default for i50

source§

fn default() -> i50

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

impl Display for i50

source§

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

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

impl From<i10> for i50

source§

fn from(x: i10) -> i50

Converts to this type from the input type.
source§

impl From<i11> for i50

source§

fn from(x: i11) -> i50

Converts to this type from the input type.
source§

impl From<i12> for i50

source§

fn from(x: i12) -> i50

Converts to this type from the input type.
source§

impl From<i13> for i50

source§

fn from(x: i13) -> i50

Converts to this type from the input type.
source§

impl From<i14> for i50

source§

fn from(x: i14) -> i50

Converts to this type from the input type.
source§

impl From<i15> for i50

source§

fn from(x: i15) -> i50

Converts to this type from the input type.
source§

impl From<i16> for i50

source§

fn from(x: i16) -> i50

Converts to this type from the input type.
source§

impl From<i17> for i50

source§

fn from(x: i17) -> i50

Converts to this type from the input type.
source§

impl From<i18> for i50

source§

fn from(x: i18) -> i50

Converts to this type from the input type.
source§

impl From<i19> for i50

source§

fn from(x: i19) -> i50

Converts to this type from the input type.
source§

impl From<i2> for i50

source§

fn from(x: i2) -> i50

Converts to this type from the input type.
source§

impl From<i20> for i50

source§

fn from(x: i20) -> i50

Converts to this type from the input type.
source§

impl From<i21> for i50

source§

fn from(x: i21) -> i50

Converts to this type from the input type.
source§

impl From<i22> for i50

source§

fn from(x: i22) -> i50

Converts to this type from the input type.
source§

impl From<i23> for i50

source§

fn from(x: i23) -> i50

Converts to this type from the input type.
source§

impl From<i24> for i50

source§

fn from(x: i24) -> i50

Converts to this type from the input type.
source§

impl From<i25> for i50

source§

fn from(x: i25) -> i50

Converts to this type from the input type.
source§

impl From<i26> for i50

source§

fn from(x: i26) -> i50

Converts to this type from the input type.
source§

impl From<i27> for i50

source§

fn from(x: i27) -> i50

Converts to this type from the input type.
source§

impl From<i28> for i50

source§

fn from(x: i28) -> i50

Converts to this type from the input type.
source§

impl From<i29> for i50

source§

fn from(x: i29) -> i50

Converts to this type from the input type.
source§

impl From<i3> for i50

source§

fn from(x: i3) -> i50

Converts to this type from the input type.
source§

impl From<i30> for i50

source§

fn from(x: i30) -> i50

Converts to this type from the input type.
source§

impl From<i31> for i50

source§

fn from(x: i31) -> i50

Converts to this type from the input type.
source§

impl From<i32> for i50

source§

fn from(x: i32) -> i50

Converts to this type from the input type.
source§

impl From<i33> for i50

source§

fn from(x: i33) -> i50

Converts to this type from the input type.
source§

impl From<i34> for i50

source§

fn from(x: i34) -> i50

Converts to this type from the input type.
source§

impl From<i35> for i50

source§

fn from(x: i35) -> i50

Converts to this type from the input type.
source§

impl From<i36> for i50

source§

fn from(x: i36) -> i50

Converts to this type from the input type.
source§

impl From<i37> for i50

source§

fn from(x: i37) -> i50

Converts to this type from the input type.
source§

impl From<i38> for i50

source§

fn from(x: i38) -> i50

Converts to this type from the input type.
source§

impl From<i39> for i50

source§

fn from(x: i39) -> i50

Converts to this type from the input type.
source§

impl From<i4> for i50

source§

fn from(x: i4) -> i50

Converts to this type from the input type.
source§

impl From<i40> for i50

source§

fn from(x: i40) -> i50

Converts to this type from the input type.
source§

impl From<i41> for i50

source§

fn from(x: i41) -> i50

Converts to this type from the input type.
source§

impl From<i42> for i50

source§

fn from(x: i42) -> i50

Converts to this type from the input type.
source§

impl From<i43> for i50

source§

fn from(x: i43) -> i50

Converts to this type from the input type.
source§

impl From<i44> for i50

source§

fn from(x: i44) -> i50

Converts to this type from the input type.
source§

impl From<i45> for i50

source§

fn from(x: i45) -> i50

Converts to this type from the input type.
source§

impl From<i46> for i50

source§

fn from(x: i46) -> i50

Converts to this type from the input type.
source§

impl From<i47> for i50

source§

fn from(x: i47) -> i50

Converts to this type from the input type.
source§

impl From<i48> for i50

source§

fn from(x: i48) -> i50

Converts to this type from the input type.
source§

impl From<i49> for i50

source§

fn from(x: i49) -> i50

Converts to this type from the input type.
source§

impl From<i5> for i50

source§

fn from(x: i5) -> i50

Converts to this type from the input type.
source§

impl From<i50> for i51

source§

fn from(x: i50) -> i51

Converts to this type from the input type.
source§

impl From<i50> for i52

source§

fn from(x: i50) -> i52

Converts to this type from the input type.
source§

impl From<i50> for i53

source§

fn from(x: i50) -> i53

Converts to this type from the input type.
source§

impl From<i50> for i54

source§

fn from(x: i50) -> i54

Converts to this type from the input type.
source§

impl From<i50> for i55

source§

fn from(x: i50) -> i55

Converts to this type from the input type.
source§

impl From<i50> for i56

source§

fn from(x: i50) -> i56

Converts to this type from the input type.
source§

impl From<i50> for i57

source§

fn from(x: i50) -> i57

Converts to this type from the input type.
source§

impl From<i50> for i58

source§

fn from(x: i50) -> i58

Converts to this type from the input type.
source§

impl From<i50> for i59

source§

fn from(x: i50) -> i59

Converts to this type from the input type.
source§

impl From<i50> for i60

source§

fn from(x: i50) -> i60

Converts to this type from the input type.
source§

impl From<i50> for i61

source§

fn from(x: i50) -> i61

Converts to this type from the input type.
source§

impl From<i50> for i62

source§

fn from(x: i50) -> i62

Converts to this type from the input type.
source§

impl From<i50> for i63

source§

fn from(x: i50) -> i63

Converts to this type from the input type.
source§

impl From<i50> for i64

source§

fn from(x: i50) -> i64

Converts to this type from the input type.
source§

impl From<i6> for i50

source§

fn from(x: i6) -> i50

Converts to this type from the input type.
source§

impl From<i7> for i50

source§

fn from(x: i7) -> i50

Converts to this type from the input type.
source§

impl From<i8> for i50

source§

fn from(x: i8) -> i50

Converts to this type from the input type.
source§

impl From<i9> for i50

source§

fn from(x: i9) -> i50

Converts to this type from the input type.
source§

impl Hash for i50

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 i50

source§

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

Formats the value using the given formatter.
source§

impl<'a> Not for &'a i50

§

type Output = <i50 as Not>::Output

The resulting type after applying the ! operator.
source§

fn not(self) -> i50

Performs the unary ! operation. Read more
source§

impl Not for i50

§

type Output = i50

The resulting type after applying the ! operator.
source§

fn not(self) -> i50

Performs the unary ! operation. Read more
source§

impl Octal for i50

source§

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

Formats the value using the given formatter.
source§

impl Ord for i50

source§

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

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 i50

source§

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

§

type Output = i50

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

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

Performs the << operation. Read more
source§

impl<T> ShlAssign<T> for i50
where i64: ShlAssign<T>,

source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
source§

impl<T> Shr<T> for i50
where i64: Shr<T, Output = i64>,

§

type Output = i50

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

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

Performs the >> operation. Read more
source§

impl<T> ShrAssign<T> for i50
where i64: ShrAssign<T>,

source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
source§

impl Sub for i50

§

type Output = i50

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl TryFrom<i50> for i10

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i10, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i11

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i11, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i12

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i12, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i13

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i13, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i14

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i14, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i15

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i15, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i16

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i16, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i17

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i17, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i18

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i18, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i19

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i19, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i2

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i2, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i20

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i20, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i21

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i21, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i22

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i22, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i23

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i23, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i24

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i24, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i25

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i25, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i26

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i26, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i27

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i27, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i28

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i28, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i29

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i29, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i3

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i3, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i30

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i30, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i31

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i31, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i32

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i32, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i33

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i33, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i34

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i34, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i35

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i35, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i36

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i36, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i37

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i37, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i38

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i38, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i39

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i39, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i4

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i4, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i40

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i40, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i41

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i41, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i42

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i42, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i43

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i43, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i44

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i44, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i45

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i45, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i46

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i46, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i47

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i47, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i48

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i48, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i49

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i49, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i5

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i5, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i6

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i6, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i7

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i7, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i8

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i8, Self::Error>

Performs the conversion.
source§

impl TryFrom<i50> for i9

§

type Error = TryFromIntError

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

fn try_from(x: i50) -> Result<i9, Self::Error>

Performs the conversion.
source§

impl TryFrom<i51> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i51) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i52> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i52) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i53> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i53) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i54> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i54) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i55> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i55) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i56> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i56) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i57> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i57) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i58> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i58) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i59> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i59) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i60> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i60) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i61> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i61) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i62> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i62) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i63> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i63) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl TryFrom<i64> for i50

§

type Error = TryFromIntError

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

fn try_from(x: i64) -> Result<i50, Self::Error>

Performs the conversion.
source§

impl UpperHex for i50

source§

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

Formats the value using the given formatter.
source§

impl Copy for i50

source§

impl Eq for i50

Auto Trait Implementations§

§

impl Freeze for i50

§

impl RefUnwindSafe for i50

§

impl Send for i50

§

impl Sync for i50

§

impl Unpin for i50

§

impl UnwindSafe for i50

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.