#[repr(C)]pub struct PackedReadOnlyAddress {
pub address: [u8; 32],
pub address_merkle_tree_root_index: u16,
pub address_merkle_tree_account_index: u8,
}Fields§
§address: [u8; 32]§address_merkle_tree_root_index: u16§address_merkle_tree_account_index: u8Trait Implementations§
Source§impl BorshDeserialize for PackedReadOnlyAddress
impl BorshDeserialize for PackedReadOnlyAddress
fn deserialize_reader<R>(reader: &mut R) -> Result<PackedReadOnlyAddress, Error>where
R: Read,
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 PackedReadOnlyAddress
impl Clone for PackedReadOnlyAddress
Source§fn clone(&self) -> PackedReadOnlyAddress
fn clone(&self) -> PackedReadOnlyAddress
Returns a duplicate 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 PackedReadOnlyAddress
impl Debug for PackedReadOnlyAddress
Source§impl Default for PackedReadOnlyAddress
impl Default for PackedReadOnlyAddress
Source§fn default() -> PackedReadOnlyAddress
fn default() -> PackedReadOnlyAddress
Returns the “default value” for a type. Read more
Source§impl PartialEq for PackedReadOnlyAddress
impl PartialEq for PackedReadOnlyAddress
Source§impl<'a> ZeroCopyAtMut<'a> for PackedReadOnlyAddress
impl<'a> ZeroCopyAtMut<'a> for PackedReadOnlyAddress
type ZeroCopyAtMut = ZPackedReadOnlyAddressMut<'a>
fn zero_copy_at_mut( __remaining_bytes: &'a mut [u8], ) -> Result<(<PackedReadOnlyAddress as ZeroCopyAtMut<'a>>::ZeroCopyAtMut, &'a mut [u8]), ZeroCopyError>
Source§impl<'a> ZeroCopyNew<'a> for PackedReadOnlyAddress
impl<'a> ZeroCopyNew<'a> for PackedReadOnlyAddress
Source§type ZeroCopyConfig = ()
type ZeroCopyConfig = ()
Configuration type needed to initialize this type
Source§type Output = <PackedReadOnlyAddress as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
type Output = <PackedReadOnlyAddress as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
Output type - the mutable zero-copy view of this type
Source§fn byte_len(
config: &<PackedReadOnlyAddress as ZeroCopyNew<'a>>::ZeroCopyConfig,
) -> Result<usize, ZeroCopyError>
fn byte_len( config: &<PackedReadOnlyAddress as ZeroCopyNew<'a>>::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: <PackedReadOnlyAddress as ZeroCopyNew<'a>>::ZeroCopyConfig,
) -> Result<(<PackedReadOnlyAddress as ZeroCopyNew<'a>>::Output, &'a mut [u8]), ZeroCopyError>
fn new_zero_copy( __remaining_bytes: &'a mut [u8], config: <PackedReadOnlyAddress as ZeroCopyNew<'a>>::ZeroCopyConfig, ) -> Result<(<PackedReadOnlyAddress as ZeroCopyNew<'a>>::Output, &'a mut [u8]), ZeroCopyError>
Initialize this type in a mutable byte slice with the given configuration Read more
Source§impl ZeroCopyStructInnerMut for PackedReadOnlyAddress
impl ZeroCopyStructInnerMut for PackedReadOnlyAddress
type ZeroCopyInnerMut = ZPackedReadOnlyAddressMut<'static>
impl Copy for PackedReadOnlyAddress
impl StructuralPartialEq for PackedReadOnlyAddress
Auto Trait Implementations§
impl Freeze for PackedReadOnlyAddress
impl RefUnwindSafe for PackedReadOnlyAddress
impl Send for PackedReadOnlyAddress
impl Sync for PackedReadOnlyAddress
impl Unpin for PackedReadOnlyAddress
impl UnwindSafe for PackedReadOnlyAddress
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