pub struct BoundedNum<Fr: PrimeField, const L: usize>(/* private fields */);
Implementations§
Source§impl<Fr: PrimeField, const L: usize> BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> BoundedNum<Fr, L>
Trait Implementations§
Source§impl<Fr: PrimeField, const L: usize> BorshDeserialize for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> BorshDeserialize for BoundedNum<Fr, L>
Source§impl<Fr: PrimeField, const L: usize> BorshSerialize for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> BorshSerialize for BoundedNum<Fr, L>
Source§impl<Fr: Clone + PrimeField, const L: usize> Clone for BoundedNum<Fr, L>
impl<Fr: Clone + PrimeField, const L: usize> Clone for BoundedNum<Fr, L>
Source§fn clone(&self) -> BoundedNum<Fr, L>
fn clone(&self) -> BoundedNum<Fr, L>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Fr: Debug + PrimeField, const L: usize> Debug for BoundedNum<Fr, L>
impl<Fr: Debug + PrimeField, const L: usize> Debug for BoundedNum<Fr, L>
Source§impl<'de, Fr: PrimeField, const L: usize> Deserialize<'de> for BoundedNum<Fr, L>
impl<'de, Fr: PrimeField, const L: usize> Deserialize<'de> for BoundedNum<Fr, L>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Fr: PrimeField, const L: usize> Distribution<BoundedNum<Fr, L>> for Standard
impl<Fr: PrimeField, const L: usize> Distribution<BoundedNum<Fr, L>> for Standard
Source§impl<Fr: PrimeField, const L: usize> PartialEq for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> PartialEq for BoundedNum<Fr, L>
Source§impl<Fr: PrimeField, const L: usize> Serialize for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> Serialize for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> Copy for BoundedNum<Fr, L>
impl<Fr: PrimeField, const L: usize> Eq for BoundedNum<Fr, L>
Auto Trait Implementations§
impl<Fr, const L: usize> Freeze for BoundedNum<Fr, L>where
Fr: Freeze,
impl<Fr, const L: usize> RefUnwindSafe for BoundedNum<Fr, L>where
Fr: RefUnwindSafe,
impl<Fr, const L: usize> Send for BoundedNum<Fr, L>where
Fr: Send,
impl<Fr, const L: usize> Sync for BoundedNum<Fr, L>where
Fr: Sync,
impl<Fr, const L: usize> Unpin for BoundedNum<Fr, L>where
Fr: Unpin,
impl<Fr, const L: usize> UnwindSafe for BoundedNum<Fr, L>where
Fr: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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