Integer

Struct Integer 

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

Integer number.

Implementations§

Source§

impl Integer

Source

pub fn from_bigint_ref(n: &BigInt) -> &Self

Converts a BigInt reference into an Integer reference.

Source

pub fn from_bigint(n: BigInt) -> Self

Converts a BigInt into an Integer.

Source

pub fn from_bytes_be(sign: Sign, bytes: &[u8]) -> Self

Source

pub fn from_bytes_le(sign: Sign, bytes: &[u8]) -> Self

Source

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

Source

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

Source

pub fn zero() -> Self

Source

pub fn is_zero(&self) -> bool

Source

pub fn is_positive(&self) -> bool

Source

pub fn is_negative(&self) -> bool

Source

pub fn integer_type(&self) -> IntegerDatatype

Source

pub fn lexical_representation(&self) -> IntegerBuf

Returns a lexical representation of this integer.

Source

pub fn to_bytes_be(&self) -> (Sign, Vec<u8>)

Source

pub fn to_bytes_le(&self) -> (Sign, Vec<u8>)

Source

pub fn to_signed_bytes_be(&self) -> Vec<u8>

Source

pub fn to_signed_bytes_le(&self) -> Vec<u8>

Trait Implementations§

Source§

impl Add<Integer> for NegativeInteger

Source§

type Output = NegativeInteger

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Integer> for NonNegativeInteger

Source§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Integer> for NonPositiveInteger

Source§

type Output = NonPositiveInteger

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Integer> for PositiveInteger

Source§

type Output = PositiveInteger

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i16> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i32> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i64> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i8> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<isize> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: isize) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u16> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u32> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u64> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u8> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<usize> for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: usize) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Integer

Source§

type Output = Integer

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
Source§

impl AsRef<BigInt> for Integer

Source§

fn as_ref(&self) -> &BigInt

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<BigInt> for Integer

Source§

fn borrow(&self) -> &BigInt

Immutably borrows from an owned value. Read more
Source§

impl Clone for Integer

Source§

fn clone(&self) -> Integer

Returns a duplicate of the value. Read more
1.0.0§

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

Source§

type Output = NegativeInteger

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Integer> for NonNegativeInteger

Source§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Integer> for NonPositiveInteger

Source§

type Output = NonPositiveInteger

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Integer> for PositiveInteger

Source§

type Output = PositiveInteger

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i16> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i32> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i64> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i8> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<isize> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: isize) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u16> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u32> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u64> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u8> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<usize> for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: usize) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Integer

Source§

type Output = Integer

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> From<&'a Integer> for Integer

Source§

fn from(value: &'a Integer) -> Self

Converts to this type from the input type.
Source§

impl From<BigInt> for Integer

Source§

fn from(value: BigInt) -> Self

Converts to this type from the input type.
Source§

impl From<Integer> for BigInt

Source§

fn from(value: Integer) -> Self

Converts to this type from the input type.
Source§

impl From<Integer> for Decimal

Source§

fn from(value: Integer) -> Self

Converts to this type from the input type.
Source§

impl From<IntegerBuf> for Integer

Source§

fn from(value: IntegerBuf) -> Self

Converts to this type from the input type.
Source§

impl From<NonNegativeInteger> for Integer

Source§

fn from(value: NonNegativeInteger) -> Self

Converts to this type from the input type.
Source§

impl From<NonPositiveIntegerBuf> for Integer

Source§

fn from(value: NonPositiveIntegerBuf) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Integer

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Integer

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Integer

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Integer

Source§

fn from(value: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for Integer

Source§

fn from(value: isize) -> 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 FromStr for Integer

Source§

type Err = InvalidInteger

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 Hash for Integer

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

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 LexicalFormOf<Integer> for Integer

Source§

type ValueError = Infallible

Source§

fn try_as_value(&self) -> Result<Integer, Self::ValueError>

Source§

fn as_value(&self) -> V
where Self: LexicalFormOf<V, ValueError = Infallible>,

Source§

impl Mul<Integer> for NegativeInteger

Source§

type Output = NegativeInteger

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Integer> for NonNegativeInteger

Source§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Integer> for NonPositiveInteger

Source§

type Output = NonPositiveInteger

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Integer> for PositiveInteger

Source§

type Output = PositiveInteger

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i16> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i32> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i64> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i8> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<isize> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: isize) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u16> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u32> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u64> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u8> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<usize> for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: usize) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Integer

Source§

type Output = Integer

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
Source§

impl Ord for Integer

Source§

fn cmp(&self, other: &Integer) -> Ordering

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

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

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

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

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

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

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

impl ParseXsd for Integer

Source§

impl PartialEq for Integer

Source§

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

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

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 Integer

Source§

fn partial_cmp(&self, other: &Integer) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

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§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

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 Sub<Integer> for NegativeInteger

Source§

type Output = NegativeInteger

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Integer> for NonNegativeInteger

Source§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Integer> for NonPositiveInteger

Source§

type Output = NonPositiveInteger

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Integer> for PositiveInteger

Source§

type Output = PositiveInteger

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i16> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i32> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i64> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i8> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<isize> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: isize) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u16> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u32> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u64> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u8> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<usize> for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: usize) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Integer

Source§

type Output = Integer

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> TryFrom<&'a Integer> for i16

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for i32

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for i64

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for i8

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for isize

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for u16

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for u32

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for u64

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for u8

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Integer> for usize

Source§

type Error = IntegerOutOfTargetBounds

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

fn try_from(value: &'a Integer) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Integer> for NonNegativeInteger

Source§

type Error = IntegerIsNegative

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for NonPositiveInteger

Source§

type Error = IntegerIsPositive

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for i16

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for i32

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for i64

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for i8

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for isize

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for u16

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for u32

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for u64

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for u8

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl TryFrom<Integer> for usize

Source§

type Error = IntegerOutOfTargetBounds

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

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

Performs the conversion.
Source§

impl XsdValue for Integer

Source§

fn datatype(&self) -> Datatype

Returns the XSD datatype that best describes the value.
Source§

impl Eq for Integer

Source§

impl StructuralPartialEq for Integer

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.