pub struct Boolean<E>(_)
where
    E: Environment
;

Methods from Deref<Target = LinearCombination<<E as Environment>::BaseField>>

Returns true if there are no terms in the linear combination.

Returns true if there is exactly one term with a coefficient of one, and the term contains a public variable.

Returns true if the linear combination is not constant or public.

Returns the mode of this linear combination.

Returns the computed value of the linear combination.

Returns true if the linear combination represents a Boolean type, and is well-formed.

Properties:

  1. Either constant or terms is utilized, however never both.
  2. Every individual variable in the linear combination must always be either 0 or 1.
  3. The value of the linear combination must always be either 0 or 1.

Trait Implementations

Returns the sum of self and other as a sum bit and carry bit.

Returns (self AND other).

The resulting type after applying the & operator.

Returns (self AND other).

The resulting type after applying the & operator.

Returns (self AND other).

The resulting type after applying the & operator.

Returns (self AND other).

The resulting type after applying the & operator.

Sets self as (self AND other).

Sets self as (self AND other).

Returns (self OR other).

The resulting type after applying the | operator.

Returns (self OR other).

The resulting type after applying the | operator.

Returns (self OR other).

The resulting type after applying the | operator.

Returns (self OR other).

The resulting type after applying the | operator.

Sets self as (self OR other).

Sets self as (self OR other).

Returns (self != other).

The resulting type after applying the ^ operator.

Returns (self != other).

The resulting type after applying the ^ operator.

Returns (self != other).

The resulting type after applying the ^ operator.

Returns (self != other).

The resulting type after applying the ^ operator.

Sets self as (self != other).

Sets self as (self != other).

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Formats the value using the given formatter. Read more

Ejects the mode of the boolean.

Ejects the boolean as a constant boolean value.

Ejects the mode and primitive value of the circuit type. Read more
Returns true if the circuit is a constant. Read more
Returns true if the circuit is a public. Read more
Returns true if the circuit is a private. Read more

Returns true if self and other are equal.

Returns true if self and other are not equal.

Converts to this type from the input type.
Converts to this type from the input type.

Returns a boolean circuit given a mode and single boolean.

Returns a boolean circuit given a mode and single boolean.

Parses a string into a boolean.

The associated error which can be returned from parsing.

Initializes a new instance of a boolean from a primitive boolean value.

Initializes a constant boolean circuit from a primitive boolean value.

Returns the number of constants, public inputs, private inputs, and constraints.
Returns the number of constants, public inputs, private inputs, and constraints.

Returns NOT (a AND b).

Returns (NOT a) AND (NOT b).

Returns (NOT a).

The resulting type after applying the ! operator.

Returns (NOT a).

The resulting type after applying the ! operator.
Returns the mode of the output.
Returns the mode of the output.

Parses a string into a boolean circuit.

Returns the difference of self and other as a difference bit and borrow bit.

Returns first if condition is true, otherwise returns second.

Outputs self as a single-element vector.

Outputs self as a single-element vector.

Outputs self as a single-element vector.

Outputs self as a single-element vector.

Returns the type name of the circuit as a string.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.