Skip to main content

QuadInt

Struct QuadInt 

Source
pub struct QuadInt<I, const D: i32>(/* private fields */)
where
    I: IntType,
    for<'x> &'x I: IntOps<I>;
Expand description

A quadratic integer in ℤ[ω], represented by (a, b) for a + b·ω.

See the module-level docs for the meaning of ω and the const D.

Implementations§

Source§

impl<I, const D: i32> QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source

pub fn new(a: I, b: I) -> Self

Source

pub fn omega() -> Self

Source

pub fn is_rational(&self) -> bool

Source

pub fn left(&self) -> &I

Source

pub fn right(&self) -> &I

Source

pub fn pair_into(self) -> (I, I)

Source

pub fn pair(&self) -> (&I, &I)

Source

pub fn conj(&self) -> Self

Source

pub fn norm(&self) -> I

Trait Implementations§

Source§

impl<I, const D: i32> Add for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<I, const D: i32> Add<&QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<I, const D: i32> Add<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<I, const D: i32> Add<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<I, const D: i32> AddAssign for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn add_assign(&mut self, rhs: QuadInt<I, D>)

Performs the += operation. Read more
Source§

impl<I, const D: i32> AddAssign<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn add_assign(&mut self, rhs: &QuadInt<I, D>)

Performs the += operation. Read more
Source§

impl<I, const D: i32> AddGrp for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddGrpOps for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddGrpOps<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddMon for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn sum<A, I>(itr: I) -> Self
where Self: AddAssign<A>, I: IntoIterator<Item = A>,

Sum an iterator into Self, folding with +=. Read more
Source§

impl<I, const D: i32> AddMonOps for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> AddMonOps<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> Clone for QuadInt<I, D>
where I: IntType + Clone, for<'x> &'x I: IntOps<I>,

Source§

fn clone(&self) -> QuadInt<I, D>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I, const D: i32> Debug for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

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

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

impl<I, const D: i32> Default for QuadInt<I, D>
where I: IntType + Default, for<'x> &'x I: IntOps<I>,

Source§

fn default() -> QuadInt<I, D>

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

impl<I, const D: i32> Display for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

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

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

impl<I> Div<&QuadInt<I, -1>> for &GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> Div<&QuadInt<I, -1>> for GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> Div<&QuadInt<I, -3>> for &EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> Div<&QuadInt<I, -3>> for EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> Div<QuadInt<I, -1>> for &GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: GaussInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> Div<QuadInt<I, -3>> for &EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: EisenInt<I>) -> Self::Output

Performs the / operation. Read more
Source§

impl<I> DivAssign<&QuadInt<I, -1>> for GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn div_assign(&mut self, rhs: &GaussInt<I>)

Performs the /= operation. Read more
Source§

impl<I> DivAssign<&QuadInt<I, -3>> for EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn div_assign(&mut self, rhs: &EisenInt<I>)

Performs the /= operation. Read more
Source§

impl<I, const D: i32> Eq for QuadInt<I, D>
where I: IntType + Eq, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRing for QuadInt<I, -1>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn divides(&self, y: &Self) -> bool

true iff self divides y (and self ≠ 0).
Source§

fn gcd(x: &Self, y: &Self) -> Self

Greatest common divisor, returned in normalized form. Read more
Source§

fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)

Extended gcd: returns (d, s, t) such that d = gcd(x, y) = s·x + t·y, with d normalized. Read more
Source§

fn lcm(x: &Self, y: &Self) -> Self

Least common multiple, returned in normalized form.
Source§

impl<I> EucRing for QuadInt<I, -3>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn divides(&self, y: &Self) -> bool

true iff self divides y (and self ≠ 0).
Source§

fn gcd(x: &Self, y: &Self) -> Self

Greatest common divisor, returned in normalized form. Read more
Source§

fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)

Extended gcd: returns (d, s, t) such that d = gcd(x, y) = s·x + t·y, with d normalized. Read more
Source§

fn lcm(x: &Self, y: &Self) -> Self

Least common multiple, returned in normalized form.
Source§

impl<I> EucRingOps for QuadInt<I, -1>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRingOps for QuadInt<I, -3>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRingOps<QuadInt<I, -1>> for &QuadInt<I, -1>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I> EucRingOps<QuadInt<I, -3>> for &QuadInt<I, -3>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> From<I> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn from(i: I) -> Self

Converts to this type from the input type.
Source§

impl<I, const D: i32> FromStr for QuadInt<I, D>
where I: IntType + FromStr, for<'x> &'x I: IntOps<I>,

Source§

type Err = ParseErr

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<I, const D: i32> MathType for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> Mon for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn product<A, I>(itr: I) -> Self
where Self: MulAssign<A>, I: IntoIterator<Item = A>,

Multiply an iterator of factors into Self, folding with *=. Read more
Source§

impl<I, const D: i32> MonOps for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> MonOps<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> Mul for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I, const D: i32> Mul<&QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I, const D: i32> Mul<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I, const D: i32> Mul<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<I, const D: i32> MulAssign for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn mul_assign(&mut self, rhs: QuadInt<I, D>)

Performs the *= operation. Read more
Source§

impl<I, const D: i32> MulAssign<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn mul_assign(&mut self, rhs: &QuadInt<I, D>)

Performs the *= operation. Read more
Source§

impl<I, const D: i32> Neg for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, const D: i32> Neg for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, const D: i32> One for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl<I, const D: i32> PartialEq for QuadInt<I, D>
where I: IntType + PartialEq, for<'x> &'x I: IntOps<I>,

Source§

fn eq(&self, other: &QuadInt<I, D>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<I> Rem<&QuadInt<I, -1>> for &GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> Rem<&QuadInt<I, -1>> for GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> Rem<&QuadInt<I, -3>> for &EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> Rem<&QuadInt<I, -3>> for EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> Rem<QuadInt<I, -1>> for &GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -1>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: GaussInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> Rem<QuadInt<I, -3>> for &EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, -3>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: EisenInt<I>) -> Self::Output

Performs the % operation. Read more
Source§

impl<I> RemAssign<&QuadInt<I, -1>> for GaussInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn rem_assign(&mut self, rhs: &GaussInt<I>)

Performs the %= operation. Read more
Source§

impl<I> RemAssign<&QuadInt<I, -3>> for EisenInt<I>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn rem_assign(&mut self, rhs: &EisenInt<I>)

Performs the %= operation. Read more
Source§

impl<I, const D: i32> Ring for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn is_unit(&self) -> bool

true iff this element is a unit (has a multiplicative inverse). Read more
Source§

fn inv(&self) -> Option<Self>

Multiplicative inverse, if this element is a unit; otherwise None.
Source§

fn normalizing_unit(&self) -> Self

A unit u such that self * u is the chosen canonical associate of self. Read more
Source§

fn from_sign(s: Sign) -> Self

+1 if s is positive, -1 otherwise.
Source§

fn normalized(&self) -> Self

The canonical associate of self (i.e. self * self.normalizing_unit()).
Source§

fn into_normalized(self) -> Self

Like normalized, but consuming.
Source§

fn is_pm_one(&self) -> bool

true iff self is +1 or -1.
Source§

fn c_weight(&self) -> f64

Heuristic cost of working with this element, used by chain-reduction pivot selection. Default: 0.0 for zero, 1.0 otherwise.
Source§

impl<I, const D: i32> RingOps for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> RingOps<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> StructuralPartialEq for QuadInt<I, D>
where I: IntType + PartialEq, for<'x> &'x I: IntOps<I>,

Source§

impl<I, const D: i32> Sub for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<I, const D: i32> Sub<&QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<I, const D: i32> Sub<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<I, const D: i32> Sub<QuadInt<I, D>> for &QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

type Output = QuadInt<I, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: QuadInt<I, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<I, const D: i32> SubAssign for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn sub_assign(&mut self, rhs: QuadInt<I, D>)

Performs the -= operation. Read more
Source§

impl<I, const D: i32> SubAssign<&QuadInt<I, D>> for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn sub_assign(&mut self, rhs: &QuadInt<I, D>)

Performs the -= operation. Read more
Source§

impl<I, const D: i32> Zero for QuadInt<I, D>
where I: IntType, for<'x> &'x I: IntOps<I>,

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.

Auto Trait Implementations§

§

impl<I, const D: i32> Freeze for QuadInt<I, D>
where &'x I: for<'x> Sized, I: Freeze,

§

impl<I, const D: i32> RefUnwindSafe for QuadInt<I, D>
where &'x I: for<'x> Sized, I: RefUnwindSafe,

§

impl<I, const D: i32> Send for QuadInt<I, D>
where &'x I: for<'x> Sized,

§

impl<I, const D: i32> Sync for QuadInt<I, D>
where &'x I: for<'x> Sized,

§

impl<I, const D: i32> Unpin for QuadInt<I, D>
where &'x I: for<'x> Sized, I: Unpin,

§

impl<I, const D: i32> UnsafeUnpin for QuadInt<I, D>
where &'x I: for<'x> Sized, I: UnsafeUnpin,

§

impl<I, const D: i32> UnwindSafe for QuadInt<I, D>
where &'x I: for<'x> Sized, I: UnwindSafe,

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

Source§

fn clone_and<F>(&self, f: F) -> Self
where F: FnOnce(&mut Self),

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.