pub struct TestConstantBundle(pub u128, pub usize);Expand description
Circuit for testing BinaryGadgets::bin_constant_bundle.
Tuple Fields§
§0: u128§1: usizeTrait Implementations§
Source§impl<F: BinaryGadgets> CircuitExecutor<F> for TestConstantBundle
impl<F: BinaryGadgets> CircuitExecutor<F> for TestConstantBundle
Source§fn execute(
&self,
backend: &mut F,
_inputs: &[<F as Fancy>::Item],
channel: &mut Channel<'_>,
) -> Result<Vec<<F as Fancy>::Item>>
fn execute( &self, backend: &mut F, _inputs: &[<F as Fancy>::Item], channel: &mut Channel<'_>, ) -> Result<Vec<<F as Fancy>::Item>>
Execute a circuit on a given
Fancy backend using the provided inputs.Source§fn ninputs(&self) -> usize
fn ninputs(&self) -> usize
The number of inputs to provide to
CircuitExecutor::execute.Auto Trait Implementations§
impl Freeze for TestConstantBundle
impl RefUnwindSafe for TestConstantBundle
impl Send for TestConstantBundle
impl Sync for TestConstantBundle
impl Unpin for TestConstantBundle
impl UnsafeUnpin for TestConstantBundle
impl UnwindSafe for TestConstantBundle
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<C> CircuitInfo for C
impl<C> CircuitInfo for C
Source§fn print_info(&self) -> Result<(), Error>
fn print_info(&self) -> Result<(), Error>
Print circuit info
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§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T