#[repr(C)]pub struct AccountHeader {
pub disc: u8,
pub version: u8,
pub flags: [u8; 2],
pub layout_id: [u8; 8],
pub reserved: [u8; 4],
}Expand description
The 16-byte account header, overlay-safe.
Fields§
§disc: u8§version: u8§flags: [u8; 2]§layout_id: [u8; 8]§reserved: [u8; 4]Implementations§
Trait Implementations§
Source§impl Clone for AccountHeader
impl Clone for AccountHeader
Source§fn clone(&self) -> AccountHeader
fn clone(&self) -> AccountHeader
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 FixedLayout for AccountHeader
impl FixedLayout for AccountHeader
Source§impl PartialEq for AccountHeader
impl PartialEq for AccountHeader
Source§fn eq(&self, other: &AccountHeader) -> bool
fn eq(&self, other: &AccountHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Zeroable for AccountHeader
Available on crate feature hopper-native-backend only.
impl Zeroable for AccountHeader
Available on crate feature
hopper-native-backend only.impl Copy for AccountHeader
impl Eq for AccountHeader
impl HopperZeroCopySealed for AccountHeader
impl Pod for AccountHeader
Available on crate feature
hopper-native-backend only.impl Pod for AccountHeader
impl StructuralPartialEq for AccountHeader
Auto Trait Implementations§
impl Freeze for AccountHeader
impl RefUnwindSafe for AccountHeader
impl Send for AccountHeader
impl Sync for AccountHeader
impl Unpin for AccountHeader
impl UnsafeUnpin for AccountHeader
impl UnwindSafe for AccountHeader
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.