pub struct PrefetchPlan {
pub shard_badges: HashMap<u64, Vec<u64>>,
pub n_badges: usize,
}Expand description
预取计划:按分片分组的 badge 块列表(每 shard 内部升序,供顺序预读/合并)。
Fields§
§shard_badges: HashMap<u64, Vec<u64>>shard_id -> 去重升序的 badge 块号
n_badges: usizeImplementations§
Source§impl PrefetchPlan
impl PrefetchPlan
Trait Implementations§
Source§impl Clone for PrefetchPlan
impl Clone for PrefetchPlan
Source§fn clone(&self) -> PrefetchPlan
fn clone(&self) -> PrefetchPlan
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 PrefetchPlan
impl Debug for PrefetchPlan
Source§impl Default for PrefetchPlan
impl Default for PrefetchPlan
Source§fn default() -> PrefetchPlan
fn default() -> PrefetchPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrefetchPlan
impl RefUnwindSafe for PrefetchPlan
impl Send for PrefetchPlan
impl Sync for PrefetchPlan
impl Unpin for PrefetchPlan
impl UnsafeUnpin for PrefetchPlan
impl UnwindSafe for PrefetchPlan
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