snarkvm_fields::fp6_3over2

Struct Fp6

Source
pub struct Fp6<P: Fp6Parameters> {
    pub c0: Fp2<P::Fp2Params>,
    pub c1: Fp2<P::Fp2Params>,
    pub c2: Fp2<P::Fp2Params>,
}
Expand description

An element of Fp6, represented by c0 + c1 * v + c2 * v^(2).

Fields§

§c0: Fp2<P::Fp2Params>§c1: Fp2<P::Fp2Params>§c2: Fp2<P::Fp2Params>

Implementations§

Source§

impl<P: Fp6Parameters> Fp6<P>

Source

pub const fn new( c0: Fp2<P::Fp2Params>, c1: Fp2<P::Fp2Params>, c2: Fp2<P::Fp2Params>, ) -> Self

Initializes an element of Fp6 from 3 Fp2 elements.

Source

pub fn mul_by_fp(&mut self, element: &<P::Fp2Params as Fp2Parameters>::Fp)

Source

pub fn mul_by_fp2(&mut self, element: &Fp2<P::Fp2Params>)

Source

pub fn mul_by_1(&mut self, c1: &Fp2<P::Fp2Params>)

Source

pub fn mul_by_01(&mut self, c0: &Fp2<P::Fp2Params>, c1: &Fp2<P::Fp2Params>)

Trait Implementations§

Source§

impl<P: Fp6Parameters> Add<&&Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &&Self) -> Self

Performs the + operation. Read more
Source§

impl<'a, P: Fp6Parameters> Add<&'a Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &Self) -> Self

Performs the + operation. Read more
Source§

impl<'a, P: Fp6Parameters> Add<&'a mut Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a mut Self) -> Self

Performs the + operation. Read more
Source§

impl<P: Fp6Parameters> Add for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<P: Fp6Parameters> AddAssign<&&Fp6<P>> for Fp6<P>

Source§

fn add_assign(&mut self, other: &&Self)

Performs the += operation. Read more
Source§

impl<'a, P: Fp6Parameters> AddAssign<&'a Fp6<P>> for Fp6<P>

Source§

fn add_assign(&mut self, other: &Self)

Performs the += operation. Read more
Source§

impl<'a, P: Fp6Parameters> AddAssign<&'a mut Fp6<P>> for Fp6<P>

Source§

fn add_assign(&mut self, other: &'a mut Self)

Performs the += operation. Read more
Source§

impl<P: Fp6Parameters> AddAssign for Fp6<P>

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<P: Fp6Parameters> CanonicalDeserialize for Fp6<P>

Source§

fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>

Source§

fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_compressed_unchecked<R>( reader: R, ) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>
where R: Read,

Source§

fn deserialize_uncompressed_unchecked<R>( reader: R, ) -> Result<Self, SerializationError>
where R: Read,

Source§

impl<P: Fp6Parameters> CanonicalDeserializeWithFlags for Fp6<P>

Source§

fn deserialize_with_flags<R: Read, F: Flags>( reader: R, ) -> Result<(Self, F), SerializationError>

Reads Self and Flags from reader. Returns empty flags by default.
Source§

impl<P: Fp6Parameters> CanonicalSerialize for Fp6<P>

Source§

fn serialize_with_mode<W: Write>( &self, writer: W, _compress: Compress, ) -> Result<(), SerializationError>

Source§

fn serialized_size(&self, compress: Compress) -> usize

Source§

fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>
where W: Write,

Source§

fn compressed_size(&self) -> usize

Source§

fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>
where W: Write,

Source§

fn uncompressed_size(&self) -> usize

Source§

impl<P: Fp6Parameters> CanonicalSerializeWithFlags for Fp6<P>

Source§

fn serialize_with_flags<W: Write, F: Flags>( &self, writer: W, flags: F, ) -> Result<(), SerializationError>

Serializes self and flags into writer.
Source§

fn serialized_size_with_flags<F: Flags>(&self) -> usize

Serializes self and flags into writer.
Source§

impl<P: Clone + Fp6Parameters> Clone for Fp6<P>
where P::Fp2Params: Clone,

Source§

fn clone(&self) -> Fp6<P>

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<P: Debug + Fp6Parameters> Debug for Fp6<P>
where P::Fp2Params: Debug,

Source§

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

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

impl<P: Default + Fp6Parameters> Default for Fp6<P>
where P::Fp2Params: Default,

Source§

fn default() -> Fp6<P>

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

impl<'de, P: Fp6Parameters> Deserialize<'de> for Fp6<P>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<P: Fp6Parameters> Display for Fp6<P>

Source§

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

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

impl<P: Fp6Parameters> Distribution<Fp6<P>> for Standard

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Fp6<P>

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<P: Fp6Parameters> Div<&&Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &&Self) -> Self

Performs the / operation. Read more
Source§

impl<'a, P: Fp6Parameters> Div<&'a Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &Self) -> Self

Performs the / operation. Read more
Source§

impl<'a, P: Fp6Parameters> Div<&'a mut Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'a mut Self) -> Self

Performs the / operation. Read more
Source§

impl<P: Fp6Parameters> Div for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
Source§

impl<P: Fp6Parameters> DivAssign<&&Fp6<P>> for Fp6<P>

Source§

fn div_assign(&mut self, other: &&Self)

Performs the /= operation. Read more
Source§

impl<'a, P: Fp6Parameters> DivAssign<&'a Fp6<P>> for Fp6<P>

Source§

fn div_assign(&mut self, other: &Self)

Performs the /= operation. Read more
Source§

impl<'a, P: Fp6Parameters> DivAssign<&'a mut Fp6<P>> for Fp6<P>

Source§

fn div_assign(&mut self, other: &'a mut Self)

Performs the /= operation. Read more
Source§

impl<P: Fp6Parameters> DivAssign for Fp6<P>

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<P: Fp6Parameters> Field for Fp6<P>

Source§

type BasePrimeField = <Fp2<<P as Fp6Parameters>::Fp2Params> as Field>::BasePrimeField

Source§

fn from_base_prime_field(other: Self::BasePrimeField) -> Self

Constructs an element of Self from an element of the base prime field.
Source§

fn characteristic<'a>() -> &'a [u64]

Returns the characteristic of the field.
Source§

fn double(&self) -> Self

Returns self + self.
Source§

fn double_in_place(&mut self)

Doubles self in place.
Source§

fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>

Returns a field element with an extra sign bit used for group parsing if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output.
Source§

fn from_random_bytes(bytes: &[u8]) -> Option<Self>

Returns a field element if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output.
Source§

fn square(&self) -> Self

Returns self * self.
Source§

fn square_in_place(&mut self) -> &mut Self

Squares self in place.
Source§

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

Computes the multiplicative inverse of self if self is nonzero.
Source§

fn inverse_in_place(&mut self) -> Option<&mut Self>

Sets self to self’s inverse if it exists. Otherwise it is a no-op.
Source§

fn frobenius_map(&mut self, power: usize)

Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism.
Source§

fn half() -> Self

Returns the constant 2^{-1}.
Source§

fn sum_of_products<'a>( a: impl Iterator<Item = &'a Self> + Clone, b: impl Iterator<Item = &'a Self> + Clone, ) -> Self

Source§

fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self

Exponentiates this element by a number represented with u64 limbs, least significant limb first.
Source§

impl<'a, P: Fp6Parameters> From<&'a [bool]> for Fp6<P>

Source§

fn from(_bits: &[bool]) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> From<u128> for Fp6<P>

Source§

fn from(other: u128) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> From<u16> for Fp6<P>

Source§

fn from(other: u16) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> From<u32> for Fp6<P>

Source§

fn from(other: u32) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> From<u64> for Fp6<P>

Source§

fn from(other: u64) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> From<u8> for Fp6<P>

Source§

fn from(other: u8) -> Self

Converts to this type from the input type.
Source§

impl<P: Fp6Parameters> FromBytes for Fp6<P>

Source§

fn read_le<R: Read>(reader: R) -> IoResult<Self>

Reads Self from reader as little-endian bytes.
Source§

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Returns Self from a byte array in little-endian order.
Source§

impl<P: Hash + Fp6Parameters> Hash for Fp6<P>
where P::Fp2Params: Hash,

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<P: Fp6Parameters> Mul<&&Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &&Self) -> Self

Performs the * operation. Read more
Source§

impl<'a, P: Fp6Parameters> Mul<&'a Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Self) -> Self

Performs the * operation. Read more
Source§

impl<'a, P: Fp6Parameters> Mul<&'a mut Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a mut Self) -> Self

Performs the * operation. Read more
Source§

impl<P: Fp6Parameters> Mul for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<P: Fp6Parameters> MulAssign<&&Fp6<P>> for Fp6<P>

Source§

fn mul_assign(&mut self, other: &&Self)

Performs the *= operation. Read more
Source§

impl<'a, P: Fp6Parameters> MulAssign<&'a Fp6<P>> for Fp6<P>

Source§

fn mul_assign(&mut self, other: &Self)

Performs the *= operation. Read more
Source§

impl<'a, P: Fp6Parameters> MulAssign<&'a mut Fp6<P>> for Fp6<P>

Source§

fn mul_assign(&mut self, other: &'a mut Self)

Performs the *= operation. Read more
Source§

impl<P: Fp6Parameters> MulAssign for Fp6<P>

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<P: Fp6Parameters> Neg for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<P: Fp6Parameters> One for Fp6<P>

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<P: Fp6Parameters> Ord for Fp6<P>

Fp3 elements are ordered lexicographically.

Source§

fn cmp(&self, other: &Self) -> 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<P: PartialEq + Fp6Parameters> PartialEq for Fp6<P>
where P::Fp2Params: PartialEq,

Source§

fn eq(&self, other: &Fp6<P>) -> 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<P: Fp6Parameters> PartialOrd for Fp6<P>

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

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<'a, P: Fp6Parameters> Product<&'a Fp6<P>> for Fp6<P>

Source§

fn product<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<P: Fp6Parameters> Product for Fp6<P>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<P: Fp6Parameters> Serialize for Fp6<P>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<P: Fp6Parameters> Sub<&&Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &&Self) -> Self

Performs the - operation. Read more
Source§

impl<'a, P: Fp6Parameters> Sub<&'a Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Self) -> Self

Performs the - operation. Read more
Source§

impl<'a, P: Fp6Parameters> Sub<&'a mut Fp6<P>> for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a mut Self) -> Self

Performs the - operation. Read more
Source§

impl<P: Fp6Parameters> Sub for Fp6<P>

Source§

type Output = Fp6<P>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<P: Fp6Parameters> SubAssign<&&Fp6<P>> for Fp6<P>

Source§

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

Performs the -= operation. Read more
Source§

impl<'a, P: Fp6Parameters> SubAssign<&'a Fp6<P>> for Fp6<P>

Source§

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

Performs the -= operation. Read more
Source§

impl<'a, P: Fp6Parameters> SubAssign<&'a mut Fp6<P>> for Fp6<P>

Source§

fn sub_assign(&mut self, other: &'a mut Self)

Performs the -= operation. Read more
Source§

impl<P: Fp6Parameters> SubAssign for Fp6<P>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<'a, P: Fp6Parameters> Sum<&'a Fp6<P>> for Fp6<P>

Source§

fn sum<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<P: Fp6Parameters> Sum for Fp6<P>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<P: Fp6Parameters> ToBits for Fp6<P>

Source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in little-endian order.
Source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in big-endian order.
Source§

fn to_bits_le(&self) -> Vec<bool>

Returns self as a boolean array in little-endian order.
Source§

fn to_bits_be(&self) -> Vec<bool>

Returns self as a boolean array in big-endian order.
Source§

fn num_bits() -> Option<usize>

An optional indication of how many bits an object can be represented with.
Source§

impl<P: Fp6Parameters> ToBytes for Fp6<P>

Source§

fn write_le<W: Write>(&self, writer: W) -> IoResult<()>

Writes self into writer as little-endian bytes.
Source§

fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized,

Returns self as a byte array in little-endian order.
Source§

impl<P: Fp6Parameters> Valid for Fp6<P>

Source§

fn check(&self) -> Result<(), SerializationError>

Source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self>, ) -> Result<(), SerializationError>
where Self: 'a,

Source§

impl<P: Fp6Parameters> Zero for Fp6<P>

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool

Source§

impl<P: Copy + Fp6Parameters> Copy for Fp6<P>
where P::Fp2Params: Copy,

Source§

impl<P: Eq + Fp6Parameters> Eq for Fp6<P>
where P::Fp2Params: Eq,

Source§

impl<P: Fp6Parameters> StructuralPartialEq for Fp6<P>

Auto Trait Implementations§

§

impl<P> Freeze for Fp6<P>

§

impl<P> RefUnwindSafe for Fp6<P>

§

impl<P> Send for Fp6<P>

§

impl<P> Sync for Fp6<P>

§

impl<P> Unpin for Fp6<P>

§

impl<P> UnwindSafe for Fp6<P>

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<'de, T> DeserializeExt<'de> for T

Source§

fn take_from_value<D>( value: &mut Value, field: &str, ) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

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<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> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where 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 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.
Source§

impl<T> Uniform for T

Source§

fn rand<R>(rng: &mut R) -> T
where R: Rng + ?Sized,

Samples a random value from a uniform distribution.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,