pub struct ReflowResult {
pub lines: Vec<String>,
pub recomputed: Vec<usize>,
pub total_cost: u64,
pub paragraph_count: usize,
}Expand description
Result of an incremental reflow operation.
Fields§
§lines: Vec<String>All lines of the document after reflow.
recomputed: Vec<usize>Indices of paragraphs that were recomputed (not cache hits).
total_cost: u64Total cost across all paragraphs (sum of per-paragraph costs).
paragraph_count: usizeNumber of paragraphs in the document.
Trait Implementations§
Source§impl Clone for ReflowResult
impl Clone for ReflowResult
Source§fn clone(&self) -> ReflowResult
fn clone(&self) -> ReflowResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReflowResult
impl RefUnwindSafe for ReflowResult
impl Send for ReflowResult
impl Sync for ReflowResult
impl Unpin for ReflowResult
impl UnsafeUnpin for ReflowResult
impl UnwindSafe for ReflowResult
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