Struct opis::Integer

source ·
pub struct Integer(pub Vec<Bit>);

Tuple Fields§

§0: Vec<Bit>

Implementations§

source§

impl Integer

source

pub fn pow(&self, e: &Integer) -> Result<Integer, Box<dyn Error>>

source§

impl Integer

source

pub fn ext_gcd(&self, b: &Integer) -> (Integer, Integer, Integer)

source§

impl Integer

source

pub fn to_ext_bits(&self, length: usize) -> Vec<Bit>

source

pub fn to_ext_bytes(&self, length: usize) -> Vec<u8>

source§

impl Integer

source

pub fn inversion(&self) -> Integer

source§

impl Integer

source

pub fn lfsr(&self, iterations: usize) -> Self

source§

impl Integer

source

pub fn posate(&mut self)

source

pub fn negate(&mut self)

source§

impl Integer

source

pub fn from_bin(str: &str) -> Result<Self, Box<dyn Error>>

source

pub fn to_bin(&self) -> String

source

pub fn from_dec(str: &str) -> Result<Self, Box<dyn Error>>

source

pub fn to_dec(&self) -> String

source

pub fn to_hex(&self) -> String

source

pub fn from_hex(arg: &str) -> Result<Self, Box<dyn Error>>

source§

impl Integer

source

pub fn truncate(&mut self)

source

pub fn truncation(&self) -> Integer

source§

impl Integer

source

pub fn mod_pow( &self, exponent: &Self, modulus: &Self ) -> Result<Integer, Box<dyn Error>>

source§

impl Integer

source

pub fn modulo(&self, modulus: &Integer) -> Result<Self, Box<dyn Error>>

source

pub fn neg_one() -> Self

source

pub fn zero() -> Self

source

pub fn one() -> Self

source

pub fn two() -> Self

source

pub fn three() -> Self

source

pub fn ten() -> Self

source

pub fn bits(&self) -> Vec<Bit>

Trait Implementations§

source§

impl Add<&Integer> for &Fraction

§

type Output = Fraction

The resulting type after applying the + operator.
source§

fn add(self, b: &Integer) -> Fraction

Performs the + operation. Read more
source§

impl Add<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: Self) -> Integer

Performs the + operation. Read more
source§

impl Add<&u128> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &u128) -> Integer

Performs the + operation. Read more
source§

impl Add<&u16> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &u16) -> Integer

Performs the + operation. Read more
source§

impl Add<&u32> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &u32) -> Integer

Performs the + operation. Read more
source§

impl Add<&u64> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &u64) -> Integer

Performs the + operation. Read more
source§

impl Add<&u8> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &u8) -> Integer

Performs the + operation. Read more
source§

impl Add<&usize> for &Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: &usize) -> Integer

Performs the + operation. Read more
source§

impl Add<Integer> for Integer

§

type Output = Integer

The resulting type after applying the + operator.
source§

fn add(self, b: Self) -> Self

Performs the + operation. Read more
source§

impl AddAssign<&Integer> for Fraction

source§

fn add_assign(&mut self, b: &Integer)

Performs the += operation. Read more
source§

impl AddAssign<&Integer> for Integer

source§

fn add_assign(&mut self, b: &Integer)

Performs the += operation. Read more
source§

impl AddAssign<&u128> for Integer

source§

fn add_assign(&mut self, b: &u128)

Performs the += operation. Read more
source§

impl AddAssign<&u16> for Integer

source§

fn add_assign(&mut self, b: &u16)

Performs the += operation. Read more
source§

impl AddAssign<&u32> for Integer

source§

fn add_assign(&mut self, b: &u32)

Performs the += operation. Read more
source§

impl AddAssign<&u64> for Integer

source§

fn add_assign(&mut self, b: &u64)

Performs the += operation. Read more
source§

impl AddAssign<&u8> for Integer

source§

fn add_assign(&mut self, b: &u8)

Performs the += operation. Read more
source§

impl AddAssign<&usize> for Integer

source§

fn add_assign(&mut self, b: &usize)

Performs the += operation. Read more
source§

impl AddAssign<Integer> for Integer

source§

fn add_assign(&mut self, b: Self)

Performs the += operation. Read more
source§

impl BitAnd<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the & operator.
source§

fn bitand(self, b: Self) -> Integer

Performs the & operation. Read more
source§

impl BitAnd<Integer> for Integer

§

type Output = Integer

The resulting type after applying the & operator.
source§

fn bitand(self, b: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitOr<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the | operator.
source§

fn bitor(self, b: Self) -> Integer

Performs the | operation. Read more
source§

impl BitOr<Integer> for Integer

§

type Output = Integer

The resulting type after applying the | operator.
source§

fn bitor(self, b: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitXor<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the ^ operator.
source§

fn bitxor(self, b: Self) -> Integer

Performs the ^ operation. Read more
source§

impl BitXor<Integer> for Integer

§

type Output = Integer

The resulting type after applying the ^ operator.
source§

fn bitxor(self, b: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl Clone for Integer

source§

fn clone(&self) -> Integer

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 Integer

source§

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

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

impl Default for Integer

source§

fn default() -> Self

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

impl Display for Integer

source§

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

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

impl Div<&Integer> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: Self) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&u128> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &u128) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&u16> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &u16) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&u32> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &u32) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&u64> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &u64) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&u8> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &u8) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<&usize> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: &usize) -> Result<Integer, Box<dyn Error>>

Performs the / operation. Read more
source§

impl Div<Integer> for Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the / operator.
source§

fn div(self, b: Self) -> Result<Self, Box<dyn Error>>

Performs the / operation. Read more
source§

impl From<&[Bit]> for Integer

source§

fn from(bits: &[Bit]) -> Self

Converts to this type from the input type.
source§

impl From<&[u8]> for Integer

source§

fn from(bytes: &[u8]) -> Self

Converts to this type from the input type.
source§

impl From<&Integer> for Fraction

source§

fn from(value: &Integer) -> Self

Converts to this type from the input type.
source§

impl From<&u128> for Integer

source§

fn from(value: &u128) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for Integer

source§

fn from(value: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Integer

source§

fn from(value: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u64> for Integer

source§

fn from(value: &u64) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for Integer

source§

fn from(value: &u8) -> Self

Converts to this type from the input type.
source§

impl From<&usize> for Integer

source§

fn from(value: &usize) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8, Global>> for Integer

source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl Hash for Integer

source§

fn hash<__H: Hasher>(&self, state: &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 Into<Vec<u8, Global>> for &Integer

source§

fn into(self) -> Vec<u8>

Converts this type into the (usually inferred) input type.
source§

impl Into<Vec<u8, Global>> for Integer

source§

fn into(self) -> Vec<u8>

Converts this type into the (usually inferred) input type.
source§

impl Into<u128> for &Integer

source§

fn into(self) -> u128

Converts this type into the (usually inferred) input type.
source§

impl Into<u16> for &Integer

source§

fn into(self) -> u16

Converts this type into the (usually inferred) input type.
source§

impl Into<u32> for &Integer

source§

fn into(self) -> u32

Converts this type into the (usually inferred) input type.
source§

impl Into<u64> for &Integer

source§

fn into(self) -> u64

Converts this type into the (usually inferred) input type.
source§

impl Into<u8> for &Integer

source§

fn into(self) -> u8

Converts this type into the (usually inferred) input type.
source§

impl Into<usize> for &Integer

source§

fn into(self) -> usize

Converts this type into the (usually inferred) input type.
source§

impl Mul<&Integer> for &Fraction

§

type Output = Fraction

The resulting type after applying the * operator.
source§

fn mul(self, b: &Integer) -> Fraction

Performs the * operation. Read more
source§

impl Mul<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: Self) -> Integer

Performs the * operation. Read more
source§

impl Mul<&u128> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &u128) -> Integer

Performs the * operation. Read more
source§

impl Mul<&u16> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &u16) -> Integer

Performs the * operation. Read more
source§

impl Mul<&u32> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &u32) -> Integer

Performs the * operation. Read more
source§

impl Mul<&u64> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &u64) -> Integer

Performs the * operation. Read more
source§

impl Mul<&u8> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &u8) -> Integer

Performs the * operation. Read more
source§

impl Mul<&usize> for &Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: &usize) -> Integer

Performs the * operation. Read more
source§

impl Mul<Integer> for Integer

§

type Output = Integer

The resulting type after applying the * operator.
source§

fn mul(self, b: Self) -> Self

Performs the * operation. Read more
source§

impl MulAssign<&Integer> for Fraction

source§

fn mul_assign(&mut self, b: &Integer)

Performs the *= operation. Read more
source§

impl MulAssign<&Integer> for Integer

source§

fn mul_assign(&mut self, b: &Integer)

Performs the *= operation. Read more
source§

impl MulAssign<&u128> for Integer

source§

fn mul_assign(&mut self, b: &u128)

Performs the *= operation. Read more
source§

impl MulAssign<&u16> for Integer

source§

fn mul_assign(&mut self, b: &u16)

Performs the *= operation. Read more
source§

impl MulAssign<&u32> for Integer

source§

fn mul_assign(&mut self, b: &u32)

Performs the *= operation. Read more
source§

impl MulAssign<&u64> for Integer

source§

fn mul_assign(&mut self, b: &u64)

Performs the *= operation. Read more
source§

impl MulAssign<&u8> for Integer

source§

fn mul_assign(&mut self, b: &u8)

Performs the *= operation. Read more
source§

impl MulAssign<&usize> for Integer

source§

fn mul_assign(&mut self, b: &usize)

Performs the *= operation. Read more
source§

impl MulAssign<Integer> for Integer

source§

fn mul_assign(&mut self, b: Self)

Performs the *= operation. Read more
source§

impl Not for &Integer

§

type Output = Integer

The resulting type after applying the ! operator.
source§

fn not(self) -> Integer

Performs the unary ! operation. Read more
source§

impl Not for Integer

§

type Output = Integer

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Ord for Integer

source§

fn cmp(&self, b: &Self) -> Ordering

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

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

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

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

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

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

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

impl PartialEq<Integer> for Integer

source§

fn eq(&self, b: &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<Integer> for Integer

source§

fn partial_cmp(&self, other: &Self) -> 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 Rem<&Integer> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: Self) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&u128> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &u128) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&u16> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &u16) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&u32> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &u32) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&u64> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &u64) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&u8> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &u8) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<&usize> for &Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: &usize) -> Result<Integer, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Rem<Integer> for Integer

§

type Output = Result<Integer, Box<dyn Error, Global>>

The resulting type after applying the % operator.
source§

fn rem(self, b: Self) -> Result<Self, Box<dyn Error>>

Performs the % operation. Read more
source§

impl Shl<&Integer> for &Integer

§

type Output = Integer

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

fn shl(self, shifts: &Integer) -> Integer

Performs the << operation. Read more
source§

impl Shl<&Integer> for Integer

§

type Output = Integer

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

fn shl(self, shifts: &Integer) -> Integer

Performs the << operation. Read more
source§

impl Shl<&usize> for &Integer

§

type Output = Integer

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

fn shl(self, shifts: &usize) -> Integer

Performs the << operation. Read more
source§

impl Shl<&usize> for Integer

§

type Output = Integer

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

fn shl(self, shifts: &usize) -> Integer

Performs the << operation. Read more
source§

impl ShlAssign<&Integer> for Integer

source§

fn shl_assign(&mut self, shifts: &Integer)

Performs the <<= operation. Read more
source§

impl ShlAssign<&usize> for Integer

source§

fn shl_assign(&mut self, shifts: &usize)

Performs the <<= operation. Read more
source§

impl Shr<&Integer> for &Integer

§

type Output = Integer

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

fn shr(self, shifts: &Integer) -> Integer

Performs the >> operation. Read more
source§

impl Shr<&Integer> for Integer

§

type Output = Integer

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

fn shr(self, shifts: &Integer) -> Integer

Performs the >> operation. Read more
source§

impl Shr<&usize> for &Integer

§

type Output = Integer

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

fn shr(self, shifts: &usize) -> Integer

Performs the >> operation. Read more
source§

impl Shr<&usize> for Integer

§

type Output = Integer

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

fn shr(self, shifts: &usize) -> Integer

Performs the >> operation. Read more
source§

impl ShrAssign<&Integer> for Integer

source§

fn shr_assign(&mut self, shifts: &Integer)

Performs the >>= operation. Read more
source§

impl ShrAssign<&usize> for Integer

source§

fn shr_assign(&mut self, shifts: &usize)

Performs the >>= operation. Read more
source§

impl Sub<&Integer> for &Fraction

§

type Output = Fraction

The resulting type after applying the - operator.
source§

fn sub(self, b: &Integer) -> Fraction

Performs the - operation. Read more
source§

impl Sub<&Integer> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: Self) -> Integer

Performs the - operation. Read more
source§

impl Sub<&u128> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &u128) -> Integer

Performs the - operation. Read more
source§

impl Sub<&u16> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &u16) -> Integer

Performs the - operation. Read more
source§

impl Sub<&u32> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &u32) -> Integer

Performs the - operation. Read more
source§

impl Sub<&u64> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &u64) -> Integer

Performs the - operation. Read more
source§

impl Sub<&u8> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &u8) -> Integer

Performs the - operation. Read more
source§

impl Sub<&usize> for &Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: &usize) -> Integer

Performs the - operation. Read more
source§

impl Sub<Integer> for Integer

§

type Output = Integer

The resulting type after applying the - operator.
source§

fn sub(self, b: Self) -> Self

Performs the - operation. Read more
source§

impl SubAssign<&Integer> for Fraction

source§

fn sub_assign(&mut self, b: &Integer)

Performs the -= operation. Read more
source§

impl SubAssign<&Integer> for Integer

source§

fn sub_assign(&mut self, b: &Self)

Performs the -= operation. Read more
source§

impl SubAssign<&u128> for Integer

source§

fn sub_assign(&mut self, b: &u128)

Performs the -= operation. Read more
source§

impl SubAssign<&u16> for Integer

source§

fn sub_assign(&mut self, b: &u16)

Performs the -= operation. Read more
source§

impl SubAssign<&u32> for Integer

source§

fn sub_assign(&mut self, b: &u32)

Performs the -= operation. Read more
source§

impl SubAssign<&u64> for Integer

source§

fn sub_assign(&mut self, b: &u64)

Performs the -= operation. Read more
source§

impl SubAssign<&u8> for Integer

source§

fn sub_assign(&mut self, b: &u8)

Performs the -= operation. Read more
source§

impl SubAssign<&usize> for Integer

source§

fn sub_assign(&mut self, b: &usize)

Performs the -= operation. Read more
source§

impl SubAssign<Integer> for Integer

source§

fn sub_assign(&mut self, b: Self)

Performs the -= operation. Read more
source§

impl TryFrom<&str> for Integer

§

type Error = Box<dyn Error, Global>

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

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for Integer

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere 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 Twhere 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.