pub struct StyleSpan {
pub range: Range<usize>,
pub style: StyleValue,
}Expand description
A styled region of text on a single line.
Fields§
§range: Range<usize>Byte range within the line string (0-indexed).
style: StyleValueThe style applied to this range.
Implementations§
Trait Implementations§
impl Eq for StyleSpan
impl StructuralPartialEq for StyleSpan
Auto Trait Implementations§
impl Freeze for StyleSpan
impl RefUnwindSafe for StyleSpan
impl Send for StyleSpan
impl Sync for StyleSpan
impl Unpin for StyleSpan
impl UnsafeUnpin for StyleSpan
impl UnwindSafe for StyleSpan
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