Struct view::LineSegment
source · pub struct LineSegment { /* private fields */ }
Expand description
Represents a segment in a larger line.
Implementations§
source§impl LineSegment
impl LineSegment
sourcepub fn new_with_color(text: &str, color: DisplayColor) -> Self
pub fn new_with_color(text: &str, color: DisplayColor) -> Self
Create a new instance with added color.
sourcepub 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§
source§impl Clone for LineSegment
impl Clone for LineSegment
source§fn clone(&self) -> LineSegment
fn clone(&self) -> LineSegment
Returns a copy of the value. Read more
1.0.0 · 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 LineSegment
impl Debug for LineSegment
source§impl From<LineSegment> for ViewLine
impl From<LineSegment> for ViewLine
source§fn from(line_segment: LineSegment) -> Self
fn from(line_segment: LineSegment) -> Self
Converts to this type from the input type.
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§
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