pub struct TreeSec<Fr: PrimeField> {
pub proof_filled: MerkleProof<Fr, { _ }>,
pub proof_free: MerkleProof<Fr, { _ }>,
pub prev_leaf: Num<Fr>,
}
Fields§
§proof_filled: MerkleProof<Fr, { _ }>
§proof_free: MerkleProof<Fr, { _ }>
§prev_leaf: Num<Fr>
Trait Implementations§
Source§impl<Fr: PrimeField> BorshDeserialize for TreeSec<Fr>where
MerkleProof<Fr, { _ }>: BorshDeserialize,
MerkleProof<Fr, { _ }>: BorshDeserialize,
Num<Fr>: BorshDeserialize,
impl<Fr: PrimeField> BorshDeserialize for TreeSec<Fr>where
MerkleProof<Fr, { _ }>: BorshDeserialize,
MerkleProof<Fr, { _ }>: BorshDeserialize,
Num<Fr>: BorshDeserialize,
Source§impl<Fr: PrimeField> BorshSerialize for TreeSec<Fr>where
MerkleProof<Fr, { _ }>: BorshSerialize,
MerkleProof<Fr, { _ }>: BorshSerialize,
Num<Fr>: BorshSerialize,
impl<Fr: PrimeField> BorshSerialize for TreeSec<Fr>where
MerkleProof<Fr, { _ }>: BorshSerialize,
MerkleProof<Fr, { _ }>: BorshSerialize,
Num<Fr>: BorshSerialize,
Source§impl<'de, Fr: PrimeField> Deserialize<'de> for TreeSec<Fr>
impl<'de, Fr: PrimeField> Deserialize<'de> for TreeSec<Fr>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Fr> Freeze for TreeSec<Fr>where
Fr: Freeze,
impl<Fr> RefUnwindSafe for TreeSec<Fr>where
Fr: RefUnwindSafe,
impl<Fr> Send for TreeSec<Fr>where
Fr: Send,
impl<Fr> Sync for TreeSec<Fr>where
Fr: Sync,
impl<Fr> Unpin for TreeSec<Fr>where
Fr: Unpin,
impl<Fr> UnwindSafe for TreeSec<Fr>where
Fr: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
impl<Out, S> FromSeed<S> for Outwhere
S: SeedBoxGen<Out>,
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