mina_
tree
0.16.0
Snark
Bool
Aliased Type
Variants
Constant
Var
Trait Implementations
BoolInterface
In mina_
tree::
zkapps::
snark
mina_tree
::
zkapps
::
snark
Type Alias
SnarkBool
Copy item path
Source
pub type SnarkBool =
CircuitVar
<
Boolean
>;
Aliased Type
§
pub enum SnarkBool { Var(
Boolean
), Constant(
Boolean
), }
Variants
§
§
Var(
Boolean
)
§
Constant(
Boolean
)
Trait Implementations
§
Source
§
impl
BoolInterface
for
SnarkBool
Source
§
type
W
=
Witness
<Fp256<FpParameters>>
Source
§
type
FailureStatusTable
=
()
Source
§
fn
as_boolean
(&self) ->
Boolean
Source
§
fn
of_boolean
(b:
Boolean
) -> Self
Source
§
fn
true_
() -> Self
Source
§
fn
false_
() -> Self
Source
§
fn
neg
(&self) -> Self
Source
§
fn
or
(a: Self, b: Self, w: &mut Self::
W
) -> Self
Source
§
fn
and
(a: Self, b: Self, w: &mut Self::
W
) -> Self
Source
§
fn
equal
(a: Self, b: Self, w: &mut Self::
W
) -> Self
Source
§
fn
all
(bs: &[Self], w: &mut Self::
W
) -> Self
Source
§
fn
assert_any
(bs: &[Self], w: &mut Self::
W
) ->
Result
<
()
,
String
>
Source
§
fn
assert_with_failure_status_tbl
( _b: Self, _table: &Self::
FailureStatusTable
, ) ->
Result
<
()
,
String
>