pub struct AnsiSpan {
pub text: String,
pub style: AnsiStyle,
}Expand description
A visible run of text with one ANSI style.
Fields§
§text: StringVisible text for this span.
style: AnsiStyleANSI style for this span.
Implementations§
Trait Implementations§
impl Eq for AnsiSpan
impl StructuralPartialEq for AnsiSpan
Auto Trait Implementations§
impl Freeze for AnsiSpan
impl RefUnwindSafe for AnsiSpan
impl Send for AnsiSpan
impl Sync for AnsiSpan
impl Unpin for AnsiSpan
impl UnsafeUnpin for AnsiSpan
impl UnwindSafe for AnsiSpan
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