pub struct Paragraph<'a> { /* private fields */ }Expand description
A widget that renders multi-line styled text.
Implementations§
Source§impl<'a> Paragraph<'a>
impl<'a> Paragraph<'a>
Sourcepub fn new<'t>(text: impl Into<FtuiText<'t>>) -> Self
pub fn new<'t>(text: impl Into<FtuiText<'t>>) -> Self
Create a new paragraph from the given text.
Sourcepub fn from_static_text(text: FtuiText<'static>) -> Self
pub fn from_static_text(text: FtuiText<'static>) -> Self
Create a new paragraph from text that is already valid for the widget’s storage lifetime.
Sourcepub fn from_static_str(text: &'static str) -> Self
pub fn from_static_str(text: &'static str) -> Self
Create a new paragraph from a static string without copying the string contents.
Trait Implementations§
Source§impl Accessible for Paragraph<'_>
impl Accessible for Paragraph<'_>
Source§fn accessibility_nodes(&self, area: Rect) -> Vec<A11yNodeInfo>
fn accessibility_nodes(&self, area: Rect) -> Vec<A11yNodeInfo>
Return accessibility node(s) for this widget at the given bounds. Read more
Source§impl MeasurableWidget for Paragraph<'_>
impl MeasurableWidget for Paragraph<'_>
Auto Trait Implementations§
impl<'a> Freeze for Paragraph<'a>
impl<'a> RefUnwindSafe for Paragraph<'a>
impl<'a> Send for Paragraph<'a>
impl<'a> Sync for Paragraph<'a>
impl<'a> Unpin for Paragraph<'a>
impl<'a> UnsafeUnpin for Paragraph<'a>
impl<'a> UnwindSafe for Paragraph<'a>
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