pub struct DisplayRun {
pub len: u32,
pub style: Style,
pub flags: u16,
pub refine: Option<RefineKind>,
}Expand description
A style-tagged run within a DisplayLine’s text — the per-line
analogue of a Cell, one per contiguous run instead of per char.
The renderer resolves style → foreground colour + modifiers via
the per-frame theme; flags carries the non-style bits the cell
model baked: lattice_cells::cell_flags::INLAY for spliced inlay
text, WS_MARKER for a whitespace-marker glyph. Run lengths
(len, utf-8 bytes) sum to text.len().
Fields§
§len: u32§style: Style§flags: u16§refine: Option<RefineKind>DR.2 (2026-08-12): intra-line diff refinement — when Some,
this run’s background overrides its row’s diff tint.
The second axis of span-layering.md, narrowed from per-row to
per-range. Runs already split wherever appearance changes, so
carrying it here costs one field and no new splitting concept.
Foreground is untouched, which is what keeps the syntax colour
DS.1–DS.5 added visible under the refinement.
Trait Implementations§
Source§impl Clone for DisplayRun
impl Clone for DisplayRun
Source§fn clone(&self) -> DisplayRun
fn clone(&self) -> DisplayRun
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DisplayRun
Source§impl Debug for DisplayRun
impl Debug for DisplayRun
impl Eq for DisplayRun
Source§impl PartialEq for DisplayRun
impl PartialEq for DisplayRun
impl StructuralPartialEq for DisplayRun
Auto Trait Implementations§
impl Freeze for DisplayRun
impl RefUnwindSafe for DisplayRun
impl Send for DisplayRun
impl Sync for DisplayRun
impl Unpin for DisplayRun
impl UnsafeUnpin for DisplayRun
impl UnwindSafe for DisplayRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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> ⓘ
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> ⓘ
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