pub struct Plain<P: Paragraph> { /* private fields */ }
Expand description
A Paragraph
of plain text.
Implementations§
Source§impl<P: Paragraph> Plain<P>
impl<P: Paragraph> Plain<P>
Sourcepub fn min_bounds(&self) -> Size
pub fn min_bounds(&self) -> Size
Returns the minimum boundaries that can fit the contents of the
Paragraph
.
Sourcepub fn min_width(&self) -> f32
pub fn min_width(&self) -> f32
Returns the minimum width that can fit the contents of the
Paragraph
.
Sourcepub fn min_height(&self) -> f32
pub fn min_height(&self) -> f32
Returns the minimum height that can fit the contents of the
Paragraph
.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Plain<P>where
P: Freeze,
impl<P> RefUnwindSafe for Plain<P>where
P: RefUnwindSafe,
impl<P> Send for Plain<P>where
P: Send,
impl<P> Sync for Plain<P>where
P: Sync,
impl<P> Unpin for Plain<P>where
P: Unpin,
impl<P> UnwindSafe for Plain<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.