pub enum Line {
Str(String),
Spans(Vec<Span>),
Full {
spans: Vec<Span>,
style: Option<Style>,
alignment: Option<Alignment>,
},
}Expand description
ratatui Line: a string, an array of spans, or {spans, style?, alignment?}.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Line> for BlockTitle
impl From<Line> for BlockTitle
impl StructuralPartialEq for Line
Source§impl Stylize<Line> for Line
impl Stylize<Line> for Line
Source§fn underline_color(self, color: Color) -> T
fn underline_color(self, color: Color) -> T
Sets the underline colour token.
Source§fn underlined(self) -> T
fn underlined(self) -> T
Adds the
UNDERLINED modifier.Source§fn slow_blink(self) -> T
fn slow_blink(self) -> T
Adds the
SLOW_BLINK modifier.Source§fn rapid_blink(self) -> T
fn rapid_blink(self) -> T
Adds the
RAPID_BLINK modifier.Adds the
HIDDEN modifier.Source§fn crossed_out(self) -> T
fn crossed_out(self) -> T
Adds the
CROSSED_OUT modifier.Source§impl Stylize<Line> for Vec<Span>
impl Stylize<Line> for Vec<Span>
Source§fn underline_color(self, color: Color) -> T
fn underline_color(self, color: Color) -> T
Sets the underline colour token.
Source§fn underlined(self) -> T
fn underlined(self) -> T
Adds the
UNDERLINED modifier.Source§fn slow_blink(self) -> T
fn slow_blink(self) -> T
Adds the
SLOW_BLINK modifier.Source§fn rapid_blink(self) -> T
fn rapid_blink(self) -> T
Adds the
RAPID_BLINK modifier.Adds the
HIDDEN modifier.Source§fn crossed_out(self) -> T
fn crossed_out(self) -> T
Adds the
CROSSED_OUT modifier.Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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