pub struct ColorSpan {
pub start: usize,
pub end: usize,
pub color: [f32; 4],
}Expand description
A color span for styled text rendering
Fields§
§start: usizeStart byte index in text
end: usizeEnd byte index in text (exclusive)
color: [f32; 4]RGBA color
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorSpan
impl RefUnwindSafe for ColorSpan
impl Send for ColorSpan
impl Sync for ColorSpan
impl Unpin for ColorSpan
impl UnsafeUnpin for ColorSpan
impl UnwindSafe for ColorSpan
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