pub struct StateFragment<Fr: PrimeField> {
pub new_leafs: Vec<(u64, Vec<Hash<Fr>>)>,
pub new_commitments: Vec<(u64, Hash<Fr>)>,
pub new_accounts: Vec<(u64, Account<Fr>)>,
pub new_notes: Vec<(u64, Note<Fr>)>,
}
Fields§
§new_leafs: Vec<(u64, Vec<Hash<Fr>>)>
§new_commitments: Vec<(u64, Hash<Fr>)>
§new_accounts: Vec<(u64, Account<Fr>)>
§new_notes: Vec<(u64, Note<Fr>)>
Trait Implementations§
Source§impl<Fr: Clone + PrimeField> Clone for StateFragment<Fr>
impl<Fr: Clone + PrimeField> Clone for StateFragment<Fr>
Source§fn clone(&self) -> StateFragment<Fr>
fn clone(&self) -> StateFragment<Fr>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Fr: Default + PrimeField> Default for StateFragment<Fr>
impl<Fr: Default + PrimeField> Default for StateFragment<Fr>
Source§fn default() -> StateFragment<Fr>
fn default() -> StateFragment<Fr>
Returns the “default value” for a type. Read more
Source§impl<'de, Fr> Deserialize<'de> for StateFragment<Fr>where
Fr: Deserialize<'de> + PrimeField,
impl<'de, Fr> Deserialize<'de> for StateFragment<Fr>where
Fr: Deserialize<'de> + PrimeField,
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
Source§impl<Fr> Serialize for StateFragment<Fr>where
Fr: Serialize + PrimeField,
impl<Fr> Serialize for StateFragment<Fr>where
Fr: Serialize + PrimeField,
Auto Trait Implementations§
impl<Fr> Freeze for StateFragment<Fr>
impl<Fr> RefUnwindSafe for StateFragment<Fr>where
Fr: RefUnwindSafe,
impl<Fr> Send for StateFragment<Fr>where
Fr: Send,
impl<Fr> Sync for StateFragment<Fr>where
Fr: Sync,
impl<Fr> Unpin for StateFragment<Fr>where
Fr: Unpin,
impl<Fr> UnwindSafe for StateFragment<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