pub struct PackedMerkleOutputContext {
pub merkle_tree_pubkey_index: u8,
}Expand description
Context which contains the indices of accounts necessary for emitting the output compressed account.
The difference between MerkleOutputContext and MerkleContext is that
the former can be used only for creating new accounts and therefore does
not contain:
- nullifier queue (because the output accout is just being created)
leaf_index(because it does not exist yet)
Fields§
§merkle_tree_pubkey_index: u8Trait Implementations§
source§impl BorshDeserialize for PackedMerkleOutputContextwhere
u8: BorshDeserialize,
impl BorshDeserialize for PackedMerkleOutputContextwhere
u8: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for PackedMerkleOutputContextwhere
u8: BorshSerialize,
impl BorshSerialize for PackedMerkleOutputContextwhere
u8: BorshSerialize,
source§impl Clone for PackedMerkleOutputContext
impl Clone for PackedMerkleOutputContext
source§fn clone(&self) -> PackedMerkleOutputContext
fn clone(&self) -> PackedMerkleOutputContext
Returns a copy 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 Debug for PackedMerkleOutputContext
impl Debug for PackedMerkleOutputContext
source§impl Default for PackedMerkleOutputContext
impl Default for PackedMerkleOutputContext
source§fn default() -> PackedMerkleOutputContext
fn default() -> PackedMerkleOutputContext
Returns the “default value” for a type. Read more
impl Copy for PackedMerkleOutputContext
impl StructuralPartialEq for PackedMerkleOutputContext
Auto Trait Implementations§
impl Freeze for PackedMerkleOutputContext
impl RefUnwindSafe for PackedMerkleOutputContext
impl Send for PackedMerkleOutputContext
impl Sync for PackedMerkleOutputContext
impl Unpin for PackedMerkleOutputContext
impl UnwindSafe for PackedMerkleOutputContext
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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