CircuitVariable

Struct CircuitVariable 

Source
pub struct CircuitVariable<T> { /* private fields */ }

Trait Implementations§

Source§

impl CircuitElement for CircuitVariable<bool>

Source§

type CircuitWitness = bool

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<i128>

Source§

type CircuitWitness = i128

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<i16>

Source§

type CircuitWitness = i16

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<i32>

Source§

type CircuitWitness = i32

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<i64>

Source§

type CircuitWitness = i64

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<i8>

Source§

type CircuitWitness = i8

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<u128>

Source§

type CircuitWitness = u128

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<u16>

Source§

type CircuitWitness = u16

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<u32>

Source§

type CircuitWitness = u32

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<u64>

Source§

type CircuitWitness = u64

The witness type associated with this circuit element.
Source§

impl CircuitElement for CircuitVariable<u8>

Source§

type CircuitWitness = u8

The witness type associated with this circuit element.
Source§

impl<T> From<VariableType> for CircuitVariable<T>

Source§

fn from(variable: VariableType) -> Self

Converts to this type from the input type.
Source§

impl<T> Variable for CircuitVariable<T>

Source§

fn ty(&self) -> VariableType

Returns the variable type representation for this variable. This is used internally by the circuit builder to track variable usage.

Auto Trait Implementations§

§

impl<T> Freeze for CircuitVariable<T>

§

impl<T> RefUnwindSafe for CircuitVariable<T>
where T: RefUnwindSafe,

§

impl<T> Send for CircuitVariable<T>
where T: Send,

§

impl<T> Sync for CircuitVariable<T>
where T: Sync,

§

impl<T> Unpin for CircuitVariable<T>
where T: Unpin,

§

impl<T> UnwindSafe for CircuitVariable<T>
where T: UnwindSafe,

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