pub struct StyleSpan {
pub start: usize,
pub end: usize,
pub scope: Option<ScopeId>,
pub style: Style,
}Expand description
Fully styled span produced by applying a Theme to scope spans.
Fields§
§start: usizeStart byte in the line.
end: usizeEnd byte in the line.
scope: Option<ScopeId>The most specific scope covering this styled span, if any.
style: StyleResolved style.
Trait Implementations§
impl Copy for StyleSpan
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