pub enum Node<P: Parameters, const WIDTH: usize> {
Leaf(P::LeafData),
Branch(Box<[Node<P, WIDTH>; WIDTH]>, Commitment<P::PairingEngine>, P::BranchAdditionalData),
}
Variants§
Leaf(P::LeafData)
Branch(Box<[Node<P, WIDTH>; WIDTH]>, Commitment<P::PairingEngine>, P::BranchAdditionalData)
Auto Trait Implementations§
impl<P, const WIDTH: usize> Freeze for Node<P, WIDTH>where
<P as Parameters>::LeafData: Freeze,
<P as Parameters>::BranchAdditionalData: Freeze,
<<P as Parameters>::PairingEngine as PairingEngine>::G1Affine: Freeze,
impl<P, const WIDTH: usize> RefUnwindSafe for Node<P, WIDTH>where
<P as Parameters>::LeafData: RefUnwindSafe,
<P as Parameters>::BranchAdditionalData: RefUnwindSafe,
<<P as Parameters>::PairingEngine as PairingEngine>::G1Affine: RefUnwindSafe,
impl<P, const WIDTH: usize> Send for Node<P, WIDTH>
impl<P, const WIDTH: usize> Sync for Node<P, WIDTH>
impl<P, const WIDTH: usize> Unpin for Node<P, WIDTH>where
<P as Parameters>::LeafData: Unpin,
<P as Parameters>::BranchAdditionalData: Unpin,
<<P as Parameters>::PairingEngine as PairingEngine>::G1Affine: Unpin,
impl<P, const WIDTH: usize> UnwindSafe for Node<P, WIDTH>where
<P as Parameters>::LeafData: UnwindSafe,
<P as Parameters>::BranchAdditionalData: UnwindSafe,
<<P as Parameters>::PairingEngine as PairingEngine>::G1Affine: UnwindSafe,
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> 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