Struct solana_accounts_db::tiered_storage::hot::HotAccountOffset
source · #[repr(C)]pub struct HotAccountOffset(/* private fields */);
Expand description
The offset to access a hot account.
Implementations§
source§impl HotAccountOffset
impl HotAccountOffset
sourcepub fn new(offset: usize) -> TieredStorageResult<Self>
pub fn new(offset: usize) -> TieredStorageResult<Self>
Creates a new AccountOffset instance
Trait Implementations§
source§impl Clone for HotAccountOffset
impl Clone for HotAccountOffset
source§fn clone(&self) -> HotAccountOffset
fn clone(&self) -> HotAccountOffset
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 HotAccountOffset
impl Debug for HotAccountOffset
source§impl Default for HotAccountOffset
impl Default for HotAccountOffset
source§fn default() -> HotAccountOffset
fn default() -> HotAccountOffset
Returns the “default value” for a type. Read more
source§impl PartialEq for HotAccountOffset
impl PartialEq for HotAccountOffset
source§fn eq(&self, other: &HotAccountOffset) -> bool
fn eq(&self, other: &HotAccountOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl AccountOffset for HotAccountOffset
impl Copy for HotAccountOffset
impl Eq for HotAccountOffset
impl Pod for HotAccountOffset
impl StructuralPartialEq for HotAccountOffset
Auto Trait Implementations§
impl RefUnwindSafe for HotAccountOffset
impl Send for HotAccountOffset
impl Sync for HotAccountOffset
impl Unpin for HotAccountOffset
impl UnwindSafe for HotAccountOffset
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,
§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
.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.