pub struct BooleanHash<E: Environment, const VARIANT: usize>(pub [Boolean<E>; VARIANT]);
Tuple Fields§
§0: [Boolean<E>; VARIANT]
Trait Implementations§
Source§impl<E: Clone + Environment, const VARIANT: usize> Clone for BooleanHash<E, VARIANT>
impl<E: Clone + Environment, const VARIANT: usize> Clone for BooleanHash<E, VARIANT>
Source§fn clone(&self) -> BooleanHash<E, VARIANT>
fn clone(&self) -> BooleanHash<E, VARIANT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug + Environment, const VARIANT: usize> Debug for BooleanHash<E, VARIANT>
impl<E: Debug + Environment, const VARIANT: usize> Debug for BooleanHash<E, VARIANT>
Source§impl<E: Environment, const VARIANT: usize> Default for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Default for BooleanHash<E, VARIANT>
Source§impl<E: Environment, const VARIANT: usize> Deref for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Deref for BooleanHash<E, VARIANT>
Source§impl<E: Environment, const VARIANT: usize> Eject for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Eject for BooleanHash<E, VARIANT>
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the boolean hash.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the Merkle path.
type Primitive = BooleanHash<VARIANT>
Source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type.
Source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.Source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.Source§impl<E: Environment, const VARIANT: usize> Equal for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Equal for BooleanHash<E, VARIANT>
Source§impl<E: Environment, const VARIANT: usize> Inject for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Inject for BooleanHash<E, VARIANT>
Source§impl<E: Environment, const VARIANT: usize> Ternary for BooleanHash<E, VARIANT>
impl<E: Environment, const VARIANT: usize> Ternary for BooleanHash<E, VARIANT>
Auto Trait Implementations§
impl<E, const VARIANT: usize> Freeze for BooleanHash<E, VARIANT>
impl<E, const VARIANT: usize> RefUnwindSafe for BooleanHash<E, VARIANT>
impl<E, const VARIANT: usize> Send for BooleanHash<E, VARIANT>
impl<E, const VARIANT: usize> Sync for BooleanHash<E, VARIANT>
impl<E, const VARIANT: usize> Unpin for BooleanHash<E, VARIANT>
impl<E, const VARIANT: usize> UnwindSafe for BooleanHash<E, VARIANT>
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<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