Struct i28

Source
pub struct i28(/* private fields */);
Expand description

The 28-bit signed integer type.

Implementations§

Source§

impl i28

The 28-bit signed integer type.

Source

pub const MAX: Self

Source

pub const MIN: Self

Source

pub const BITS: u32 = 28u32

Source§

impl i28

Source

pub fn min_value() -> i28

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

Source

pub fn max_value() -> i28

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

Source

pub const fn new(value: i32) -> i28

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 i28

Source§

type Output = i28

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Binary for i28

Source§

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

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

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<'a> BitAnd for &'a i28

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAnd for i28

Source§

type Output = i28

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAndAssign for i28

Source§

fn bitand_assign(&mut self, other: i28)

Performs the &= operation. Read more
Source§

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<'a> BitOr for &'a i28

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOr for i28

Source§

type Output = i28

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOrAssign for i28

Source§

fn bitor_assign(&mut self, other: i28)

Performs the |= operation. Read more
Source§

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

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

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl<'a> BitXor for &'a i28

Source§

type Output = <i28 as BitOr>::Output

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl BitXor for i28

Source§

type Output = i28

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl BitXorAssign for i28

Source§

fn bitxor_assign(&mut self, other: i28)

Performs the ^= operation. Read more
Source§

impl Clone for i28

Source§

fn clone(&self) -> i28

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 i28

Source§

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

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

impl Default for i28

Source§

fn default() -> i28

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

impl Display for i28

Source§

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

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

impl From<i10> for i28

Source§

fn from(x: i10) -> i28

Converts to this type from the input type.
Source§

impl From<i11> for i28

Source§

fn from(x: i11) -> i28

Converts to this type from the input type.
Source§

impl From<i12> for i28

Source§

fn from(x: i12) -> i28

Converts to this type from the input type.
Source§

impl From<i13> for i28

Source§

fn from(x: i13) -> i28

Converts to this type from the input type.
Source§

impl From<i14> for i28

Source§

fn from(x: i14) -> i28

Converts to this type from the input type.
Source§

impl From<i15> for i28

Source§

fn from(x: i15) -> i28

Converts to this type from the input type.
Source§

impl From<i16> for i28

Source§

fn from(x: i16) -> i28

Converts to this type from the input type.
Source§

impl From<i17> for i28

Source§

fn from(x: i17) -> i28

Converts to this type from the input type.
Source§

impl From<i18> for i28

Source§

fn from(x: i18) -> i28

Converts to this type from the input type.
Source§

impl From<i19> for i28

Source§

fn from(x: i19) -> i28

Converts to this type from the input type.
Source§

impl From<i2> for i28

Source§

fn from(x: i2) -> i28

Converts to this type from the input type.
Source§

impl From<i20> for i28

Source§

fn from(x: i20) -> i28

Converts to this type from the input type.
Source§

impl From<i21> for i28

Source§

fn from(x: i21) -> i28

Converts to this type from the input type.
Source§

impl From<i22> for i28

Source§

fn from(x: i22) -> i28

Converts to this type from the input type.
Source§

impl From<i23> for i28

Source§

fn from(x: i23) -> i28

Converts to this type from the input type.
Source§

impl From<i24> for i28

Source§

fn from(x: i24) -> i28

Converts to this type from the input type.
Source§

impl From<i25> for i28

Source§

fn from(x: i25) -> i28

Converts to this type from the input type.
Source§

impl From<i26> for i28

Source§

fn from(x: i26) -> i28

Converts to this type from the input type.
Source§

impl From<i27> for i28

Source§

fn from(x: i27) -> i28

Converts to this type from the input type.
Source§

impl From<i28> for i29

Source§

fn from(x: i28) -> i29

Converts to this type from the input type.
Source§

impl From<i28> for i30

Source§

fn from(x: i28) -> i30

Converts to this type from the input type.
Source§

impl From<i28> for i31

Source§

fn from(x: i28) -> i31

Converts to this type from the input type.
Source§

impl From<i28> for i32

Source§

fn from(x: i28) -> i32

Converts to this type from the input type.
Source§

impl From<i28> for i33

Source§

fn from(x: i28) -> i33

Converts to this type from the input type.
Source§

impl From<i28> for i34

Source§

fn from(x: i28) -> i34

Converts to this type from the input type.
Source§

impl From<i28> for i35

Source§

fn from(x: i28) -> i35

Converts to this type from the input type.
Source§

impl From<i28> for i36

Source§

fn from(x: i28) -> i36

Converts to this type from the input type.
Source§

impl From<i28> for i37

Source§

fn from(x: i28) -> i37

Converts to this type from the input type.
Source§

impl From<i28> for i38

Source§

fn from(x: i28) -> i38

Converts to this type from the input type.
Source§

impl From<i28> for i39

Source§

fn from(x: i28) -> i39

Converts to this type from the input type.
Source§

impl From<i28> for i40

Source§

fn from(x: i28) -> i40

Converts to this type from the input type.
Source§

impl From<i28> for i41

Source§

fn from(x: i28) -> i41

Converts to this type from the input type.
Source§

impl From<i28> for i42

Source§

fn from(x: i28) -> i42

Converts to this type from the input type.
Source§

impl From<i28> for i43

Source§

fn from(x: i28) -> i43

Converts to this type from the input type.
Source§

impl From<i28> for i44

Source§

fn from(x: i28) -> i44

Converts to this type from the input type.
Source§

impl From<i28> for i45

Source§

fn from(x: i28) -> i45

Converts to this type from the input type.
Source§

impl From<i28> for i46

Source§

fn from(x: i28) -> i46

Converts to this type from the input type.
Source§

impl From<i28> for i47

Source§

fn from(x: i28) -> i47

Converts to this type from the input type.
Source§

impl From<i28> for i48

Source§

fn from(x: i28) -> i48

Converts to this type from the input type.
Source§

impl From<i28> for i49

Source§

fn from(x: i28) -> i49

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<i28> for i51

Source§

fn from(x: i28) -> i51

Converts to this type from the input type.
Source§

impl From<i28> for i52

Source§

fn from(x: i28) -> i52

Converts to this type from the input type.
Source§

impl From<i28> for i53

Source§

fn from(x: i28) -> i53

Converts to this type from the input type.
Source§

impl From<i28> for i54

Source§

fn from(x: i28) -> i54

Converts to this type from the input type.
Source§

impl From<i28> for i55

Source§

fn from(x: i28) -> i55

Converts to this type from the input type.
Source§

impl From<i28> for i56

Source§

fn from(x: i28) -> i56

Converts to this type from the input type.
Source§

impl From<i28> for i57

Source§

fn from(x: i28) -> i57

Converts to this type from the input type.
Source§

impl From<i28> for i58

Source§

fn from(x: i28) -> i58

Converts to this type from the input type.
Source§

impl From<i28> for i59

Source§

fn from(x: i28) -> i59

Converts to this type from the input type.
Source§

impl From<i28> for i60

Source§

fn from(x: i28) -> i60

Converts to this type from the input type.
Source§

impl From<i28> for i61

Source§

fn from(x: i28) -> i61

Converts to this type from the input type.
Source§

impl From<i28> for i62

Source§

fn from(x: i28) -> i62

Converts to this type from the input type.
Source§

impl From<i28> for i63

Source§

fn from(x: i28) -> i63

Converts to this type from the input type.
Source§

impl From<i28> for i64

Source§

fn from(x: i28) -> i64

Converts to this type from the input type.
Source§

impl From<i3> for i28

Source§

fn from(x: i3) -> i28

Converts to this type from the input type.
Source§

impl From<i4> for i28

Source§

fn from(x: i4) -> i28

Converts to this type from the input type.
Source§

impl From<i5> for i28

Source§

fn from(x: i5) -> i28

Converts to this type from the input type.
Source§

impl From<i6> for i28

Source§

fn from(x: i6) -> i28

Converts to this type from the input type.
Source§

impl From<i7> for i28

Source§

fn from(x: i7) -> i28

Converts to this type from the input type.
Source§

impl From<i8> for i28

Source§

fn from(x: i8) -> i28

Converts to this type from the input type.
Source§

impl From<i9> for i28

Source§

fn from(x: i9) -> i28

Converts to this type from the input type.
Source§

impl Hash for i28

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 i28

Source§

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

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

impl<'a> Not for &'a i28

Source§

type Output = <i28 as Not>::Output

The resulting type after applying the ! operator.
Source§

fn not(self) -> i28

Performs the unary ! operation. Read more
Source§

impl Not for i28

Source§

type Output = i28

The resulting type after applying the ! operator.
Source§

fn not(self) -> i28

Performs the unary ! operation. Read more
Source§

impl Octal for i28

Source§

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

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

impl Ord for i28

Source§

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

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

impl PartialEq for i28

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for i28

Source§

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T> Shl<T> for i28
where i32: Shl<T, Output = i32>,

Source§

type Output = i28

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

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

Performs the << operation. Read more
Source§

impl<T> ShlAssign<T> for i28
where i32: ShlAssign<T>,

Source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
Source§

impl<T> Shr<T> for i28
where i32: Shr<T, Output = i32>,

Source§

type Output = i28

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

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

Performs the >> operation. Read more
Source§

impl<T> ShrAssign<T> for i28
where i32: ShrAssign<T>,

Source§

fn shr_assign(&mut self, rhs: T)

Performs the >>= operation. Read more
Source§

impl Sub for i28

Source§

type Output = i28

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl TryFrom<i28> for i10

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i11

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i12

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i13

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i14

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i15

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i16

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i17

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i18

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i19

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i2

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i20

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i21

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i22

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i23

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i24

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i25

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i26

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i27

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i3

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i4

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i5

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i6

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i7

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i8

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i28> for i9

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i29> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i30> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i31> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i32> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i33> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i34> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i35> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i36> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i37> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i38> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i39> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i40> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i41> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i42> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i43> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i44> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i45> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i46> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i47> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i48> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i49> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i50> for i28

Source§

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<i51> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i52> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i53> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i54> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i55> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i56> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i57> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i58> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i59> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i60> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i61> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i62> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i63> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl TryFrom<i64> for i28

Source§

type Error = TryFromIntError

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

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

Performs the conversion.
Source§

impl UpperHex for i28

Source§

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

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

impl Copy for i28

Source§

impl Eq for i28

Auto Trait Implementations§

§

impl Freeze for i28

§

impl RefUnwindSafe for i28

§

impl Send for i28

§

impl Sync for i28

§

impl Unpin for i28

§

impl UnwindSafe for i28

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.