pub struct GranularityBudgetSegments {
pub prefix: String,
pub suffix: String,
pub prefix_dropped_ids: Vec<String>,
pub suffix_dropped_ids: Vec<String>,
}Expand description
Result of segment_by_granularity_budget: the PREFIX (coarse, cache-stable)
and SUFFIX (fine, volatile) text blocks, plus which candidate ids were dropped
from each side when the budget ran out.
Fields§
§prefix: String§suffix: String§prefix_dropped_ids: Vec<String>§suffix_dropped_ids: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for GranularityBudgetSegments
impl Clone for GranularityBudgetSegments
Source§fn clone(&self) -> GranularityBudgetSegments
fn clone(&self) -> GranularityBudgetSegments
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 GranularityBudgetSegments
impl Debug for GranularityBudgetSegments
Source§impl Default for GranularityBudgetSegments
impl Default for GranularityBudgetSegments
Source§fn default() -> GranularityBudgetSegments
fn default() -> GranularityBudgetSegments
Returns the “default value” for a type. Read more
impl Eq for GranularityBudgetSegments
impl StructuralPartialEq for GranularityBudgetSegments
Auto Trait Implementations§
impl Freeze for GranularityBudgetSegments
impl RefUnwindSafe for GranularityBudgetSegments
impl Send for GranularityBudgetSegments
impl Sync for GranularityBudgetSegments
impl Unpin for GranularityBudgetSegments
impl UnsafeUnpin for GranularityBudgetSegments
impl UnwindSafe for GranularityBudgetSegments
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.