pub struct RefineSpan {
pub start: usize,
pub end: usize,
pub kind: RefineKind,
}Expand description
DR.2 (2026-08-12): a byte range whose background differs from its row’s — intra-line diff refinement.
A second, independent axis from StyledSpan, and deliberately a
separate type rather than a bg field on that one. The foreground
axis resolves by first-match-wins over a concatenated list; a
background is a different question with different precedence, and
fusing them would force every existing span producer to have an
opinion about a concern it does not have.
See docs/dev/architecture/diff-refinement.md §3 and
span-layering.md §1 (the two-axis contract this extends).
Fields§
§start: usizeByte offset within the line where the span starts.
end: usizeByte offset within the line (exclusive).
kind: RefineKindTrait Implementations§
Source§impl Clone for RefineSpan
impl Clone for RefineSpan
Source§fn clone(&self) -> RefineSpan
fn clone(&self) -> RefineSpan
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 moreimpl Copy for RefineSpan
Source§impl Debug for RefineSpan
impl Debug for RefineSpan
impl Eq for RefineSpan
Source§impl PartialEq for RefineSpan
impl PartialEq for RefineSpan
impl StructuralPartialEq for RefineSpan
Auto Trait Implementations§
impl Freeze for RefineSpan
impl RefUnwindSafe for RefineSpan
impl Send for RefineSpan
impl Sync for RefineSpan
impl Unpin for RefineSpan
impl UnsafeUnpin for RefineSpan
impl UnwindSafe for RefineSpan
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