Struct view::LineSegment [−][src]
pub struct LineSegment { /* fields omitted */ }
Expand description
Represents a segment in a larger line.
Implementations
Create a new instance with added color.
pub fn new_with_color_and_style(
text: &str,
color: DisplayColor,
dim: bool,
underline: bool,
reverse: bool
) -> Self
pub fn new_with_color_and_style(
text: &str,
color: DisplayColor,
dim: bool,
underline: bool,
reverse: bool
) -> Self
Create a new instance with added color and style.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for LineSegment
impl Send for LineSegment
impl Sync for LineSegment
impl Unpin for LineSegment
impl UnwindSafe for LineSegment
Blanket Implementations
Mutably borrows from an owned value. Read more