#[repr(C)]pub struct SlotHistory {
pub bits: BitVec<u64>,
pub next_slot: u64,
}
Expand description
A bitvector indicating which slots are present in the past epoch.
Fields§
§bits: BitVec<u64>
§next_slot: u64
Implementations§
Trait Implementations§
Source§impl Clone for SlotHistory
impl Clone for SlotHistory
Source§fn clone(&self) -> SlotHistory
fn clone(&self) -> SlotHistory
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 SlotHistory
impl Debug for SlotHistory
Source§impl Default for SlotHistory
impl Default for SlotHistory
Source§impl<'de> Deserialize<'de> for SlotHistory
impl<'de> Deserialize<'de> for SlotHistory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SlotHistory
impl PartialEq for SlotHistory
Source§impl Serialize for SlotHistory
impl Serialize for SlotHistory
Source§impl SysvarId for SlotHistory
Available on crate feature sysvar
only.
impl SysvarId for SlotHistory
Available on crate feature
sysvar
only.impl Eq for SlotHistory
impl StructuralPartialEq for SlotHistory
Auto Trait Implementations§
impl Freeze for SlotHistory
impl RefUnwindSafe for SlotHistory
impl Send for SlotHistory
impl Sync for SlotHistory
impl Unpin for SlotHistory
impl UnwindSafe for SlotHistory
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