pub struct CBoundedNum<C: CS, const L: usize>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<C: Clone + CS, const L: usize> Clone for CBoundedNum<C, L>
impl<C: Clone + CS, const L: usize> Clone for CBoundedNum<C, L>
Source§fn clone(&self) -> CBoundedNum<C, L>
fn clone(&self) -> CBoundedNum<C, 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<C: CS, const L: usize> Signal<C> for CBoundedNum<C, L>
impl<C: CS, const L: usize> Signal<C> for CBoundedNum<C, L>
type Value = BoundedNum<<C as CS>::Fr, L>
fn as_const(&self) -> Option<Self::Value>
fn get_value(&self) -> Option<Self::Value>
fn from_const(cs: &RCS<C>, value: &Self::Value) -> Self
fn get_cs(&self) -> &RCS<C>
fn alloc(cs: &RCS<C>, value: Option<&Self::Value>) -> Self
fn switch(&self, bit: &CBool<C>, if_else: &Self) -> Self
fn assert_const(&self, value: &Self::Value)
fn assert_eq(&self, other: &Self)
fn is_eq(&self, other: &Self) -> CBool<C>
fn inputize(&self)
fn derive_const<T>(&self, value: &<T as Signal<C>>::Value) -> Twhere
T: Signal<C>,
fn derive_alloc<T>(&self, value: Option<&<T as Signal<C>>::Value>) -> Twhere
T: Signal<C>,
Auto Trait Implementations§
impl<C, const L: usize> Freeze for CBoundedNum<C, L>
impl<C, const L: usize> !RefUnwindSafe for CBoundedNum<C, L>
impl<C, const L: usize> !Send for CBoundedNum<C, L>
impl<C, const L: usize> !Sync for CBoundedNum<C, L>
impl<C, const L: usize> Unpin for CBoundedNum<C, L>
impl<C, const L: usize> !UnwindSafe for CBoundedNum<C, L>
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<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