pub struct PrefixSnapshotEntry {
pub hash: u64,
pub tokens: Vec<u32>,
}Expand description
Represents a single warm prefix entry in a persistent snapshot.
Fields§
§hash: u6464-bit cumulative hash of this prefix block.
tokens: Vec<u32>Token IDs stored in the block.
Trait Implementations§
Source§impl Clone for PrefixSnapshotEntry
impl Clone for PrefixSnapshotEntry
Source§fn clone(&self) -> PrefixSnapshotEntry
fn clone(&self) -> PrefixSnapshotEntry
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 Debug for PrefixSnapshotEntry
impl Debug for PrefixSnapshotEntry
Source§impl<'de> Deserialize<'de> for PrefixSnapshotEntry
impl<'de> Deserialize<'de> for PrefixSnapshotEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrefixSnapshotEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrefixSnapshotEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PrefixSnapshotEntry
Source§impl PartialEq for PrefixSnapshotEntry
impl PartialEq for PrefixSnapshotEntry
Source§impl Serialize for PrefixSnapshotEntry
impl Serialize for PrefixSnapshotEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PrefixSnapshotEntry
Auto Trait Implementations§
impl Forget for PrefixSnapshotEntry
impl Freeze for PrefixSnapshotEntry
impl Move for PrefixSnapshotEntry
impl RefUnwindSafe for PrefixSnapshotEntry
impl Send for PrefixSnapshotEntry
impl Sync for PrefixSnapshotEntry
impl Unpin for PrefixSnapshotEntry
impl UnsafeUnpin for PrefixSnapshotEntry
impl UnwindSafe for PrefixSnapshotEntry
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