pub struct StyledSpan {
pub start: usize,
pub end: usize,
pub fg: Option<AnsiColor>,
pub bg: Option<AnsiColor>,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub dim: bool,
}Expand description
Style information for a span of text within a line.
Fields§
§start: usizeStart byte offset in the cleaned content.
end: usizeEnd byte offset (exclusive) in the cleaned content.
fg: Option<AnsiColor>Foreground color.
bg: Option<AnsiColor>Background color.
bold: bool§italic: bool§underline: bool§dim: boolTrait Implementations§
Source§impl Clone for StyledSpan
impl Clone for StyledSpan
Source§fn clone(&self) -> StyledSpan
fn clone(&self) -> StyledSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyledSpan
impl Debug for StyledSpan
Source§impl PartialEq for StyledSpan
impl PartialEq for StyledSpan
Source§fn eq(&self, other: &StyledSpan) -> bool
fn eq(&self, other: &StyledSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyledSpan
Auto Trait Implementations§
impl Freeze for StyledSpan
impl RefUnwindSafe for StyledSpan
impl Send for StyledSpan
impl Sync for StyledSpan
impl Unpin for StyledSpan
impl UnsafeUnpin for StyledSpan
impl UnwindSafe for StyledSpan
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