pub struct PrefixSnapshotEntry {
pub hash: u64,
pub tokens: Vec<TokenId>,
}Expand description
Represents a single warm prefix entry in a persistent snapshot.
Fields§
§hash: u6464-bit cumulative hash of this prefix block.
tokens: Vec<TokenId>Token IDs stored in the block.
Trait Implementations§
Source§impl Clone for PrefixSnapshotEntry
impl Clone for PrefixSnapshotEntry
Source§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<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
impl Eq for PrefixSnapshotEntry
Source§impl PartialEq for PrefixSnapshotEntry
impl PartialEq for PrefixSnapshotEntry
Source§impl Serialize for PrefixSnapshotEntry
impl Serialize for PrefixSnapshotEntry
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