Struct solana_runtime::account_info::PackedOffsetAndFlags
source · #[repr(C)]pub struct PackedOffsetAndFlags { /* private fields */ }
Implementations§
source§impl PackedOffsetAndFlags
impl PackedOffsetAndFlags
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
Trait Implementations§
source§impl Clone for PackedOffsetAndFlags
impl Clone for PackedOffsetAndFlags
source§fn clone(&self) -> PackedOffsetAndFlags
fn clone(&self) -> PackedOffsetAndFlags
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 PackedOffsetAndFlags
impl Debug for PackedOffsetAndFlags
source§impl Default for PackedOffsetAndFlags
impl Default for PackedOffsetAndFlags
source§fn default() -> PackedOffsetAndFlags
fn default() -> PackedOffsetAndFlags
Returns the “default value” for a type. Read more
source§impl PartialEq<PackedOffsetAndFlags> for PackedOffsetAndFlags
impl PartialEq<PackedOffsetAndFlags> for PackedOffsetAndFlags
source§fn eq(&self, other: &PackedOffsetAndFlags) -> bool
fn eq(&self, other: &PackedOffsetAndFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PackedOffsetAndFlags
impl Eq for PackedOffsetAndFlags
impl StructuralEq for PackedOffsetAndFlags
impl StructuralPartialEq for PackedOffsetAndFlags
Auto Trait Implementations§
impl RefUnwindSafe for PackedOffsetAndFlags
impl Send for PackedOffsetAndFlags
impl Sync for PackedOffsetAndFlags
impl Unpin for PackedOffsetAndFlags
impl UnwindSafe for PackedOffsetAndFlags
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.