pub struct Span {
pub start: u32,
pub end: u32,
pub style: SpanStyle,
}Expand description
An inline formatting span within a StyledText.
Uses u32 offsets and a 2-byte SpanStyle (flags + link index) to keep
the struct at 12 bytes, improving cache locality during block iteration.
Fields§
§start: u32§end: u32§style: SpanStyleTrait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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