#[repr(C)]pub struct OutputCompressedAccountWithPackedContext {
pub compressed_account: CompressedAccount,
pub merkle_tree_index: u8,
}Fields§
§compressed_account: CompressedAccount§merkle_tree_index: u8Implementations§
Source§impl OutputCompressedAccountWithPackedContext
impl OutputCompressedAccountWithPackedContext
pub fn from_with_owner( info: &OutAccountInfo, owner: Pubkey, address: Option<[u8; 32]>, ) -> Self
Trait Implementations§
Source§impl BorshDeserialize for OutputCompressedAccountWithPackedContext
impl BorshDeserialize for OutputCompressedAccountWithPackedContext
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 Clone for OutputCompressedAccountWithPackedContext
impl Clone for OutputCompressedAccountWithPackedContext
Source§fn clone(&self) -> OutputCompressedAccountWithPackedContext
fn clone(&self) -> OutputCompressedAccountWithPackedContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OutputCompressedAccountWithPackedContext
impl Default for OutputCompressedAccountWithPackedContext
Source§fn default() -> OutputCompressedAccountWithPackedContext
fn default() -> OutputCompressedAccountWithPackedContext
Returns the “default value” for a type. Read more
Source§impl<'a> From<&ZOutputCompressedAccountWithPackedContext<'a>> for OutputCompressedAccountWithPackedContext
impl<'a> From<&ZOutputCompressedAccountWithPackedContext<'a>> for OutputCompressedAccountWithPackedContext
Source§fn from(
output_compressed_account: &ZOutputCompressedAccountWithPackedContext<'a>,
) -> Self
fn from( output_compressed_account: &ZOutputCompressedAccountWithPackedContext<'a>, ) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputCompressedAccountWithPackedContext
impl PartialEq for OutputCompressedAccountWithPackedContext
Source§fn eq(&self, other: &OutputCompressedAccountWithPackedContext) -> bool
fn eq(&self, other: &OutputCompressedAccountWithPackedContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputCompressedAccountWithPackedContext
Source§impl TryFrom<OutputCompressedAccountWithPackedContext> for OutAccountInfo
impl TryFrom<OutputCompressedAccountWithPackedContext> for OutAccountInfo
Source§type Error = CompressedAccountError
type Error = CompressedAccountError
The type returned in the event of a conversion error.
Source§impl<'a> ZeroCopyAtMut<'a> for OutputCompressedAccountWithPackedContext
impl<'a> ZeroCopyAtMut<'a> for OutputCompressedAccountWithPackedContext
type ZeroCopyAtMut = ZOutputCompressedAccountWithPackedContextMut<'a>
fn zero_copy_at_mut( __remaining_bytes: &'a mut [u8], ) -> Result<(Self::ZeroCopyAtMut, &'a mut [u8]), ZeroCopyError>
Source§impl<'a> ZeroCopyNew<'a> for OutputCompressedAccountWithPackedContext
impl<'a> ZeroCopyNew<'a> for OutputCompressedAccountWithPackedContext
Source§type ZeroCopyConfig = OutputCompressedAccountWithPackedContextConfig
type ZeroCopyConfig = OutputCompressedAccountWithPackedContextConfig
Configuration type needed to initialize this type
Source§type Output = <OutputCompressedAccountWithPackedContext as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
type Output = <OutputCompressedAccountWithPackedContext as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
Output type - the mutable zero-copy view of this type
Source§fn byte_len(config: &Self::ZeroCopyConfig) -> Result<usize, ZeroCopyError>
fn byte_len(config: &Self::ZeroCopyConfig) -> Result<usize, ZeroCopyError>
Calculate the byte length needed for this type with the given configuration Read more
Source§fn new_zero_copy(
__remaining_bytes: &'a mut [u8],
config: Self::ZeroCopyConfig,
) -> Result<(Self::Output, &'a mut [u8]), ZeroCopyError>
fn new_zero_copy( __remaining_bytes: &'a mut [u8], config: Self::ZeroCopyConfig, ) -> Result<(Self::Output, &'a mut [u8]), ZeroCopyError>
Initialize this type in a mutable byte slice with the given configuration Read more
Auto Trait Implementations§
impl Freeze for OutputCompressedAccountWithPackedContext
impl RefUnwindSafe for OutputCompressedAccountWithPackedContext
impl Send for OutputCompressedAccountWithPackedContext
impl Sync for OutputCompressedAccountWithPackedContext
impl Unpin for OutputCompressedAccountWithPackedContext
impl UnsafeUnpin for OutputCompressedAccountWithPackedContext
impl UnwindSafe for OutputCompressedAccountWithPackedContext
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