pub struct RowTranslation {
pub entries: Vec<RowEntry>,
}Expand description
Composed-row → source-row mapping. One entry per composed row, in display order. Rebuilt on every recompose.
Fields§
§entries: Vec<RowEntry>Implementations§
Source§impl RowTranslation
impl RowTranslation
pub fn build(excerpts: &[Excerpt]) -> Self
Sourcepub fn append(&mut self, excerpts: &[Excerpt])
pub fn append(&mut self, excerpts: &[Excerpt])
MH.B1 (2026-06-19): extend the translation in place with a
batch of newly-appended excerpts. Because build is pure
concatenation (one RowEntry::Excerpt per source row, per
excerpt, in order — no cross-excerpt state), appending a
batch’s entries to an existing translation yields exactly
the same Vec<RowEntry> as rebuilding from the full excerpt
list. This is the row-translation half of the O(batch)
incremental append_excerpts; the equivalence is pinned by
incremental_append_matches_full_build.
Trait Implementations§
Source§impl Clone for RowTranslation
impl Clone for RowTranslation
Source§fn clone(&self) -> RowTranslation
fn clone(&self) -> RowTranslation
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 RowTranslation
impl Debug for RowTranslation
Source§impl Default for RowTranslation
impl Default for RowTranslation
Source§fn default() -> RowTranslation
fn default() -> RowTranslation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RowTranslation
impl RefUnwindSafe for RowTranslation
impl Send for RowTranslation
impl Sync for RowTranslation
impl Unpin for RowTranslation
impl UnsafeUnpin for RowTranslation
impl UnwindSafe for RowTranslation
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more