pub struct Text<Content = String, Font = Font> {
    pub content: Content,
    pub bounds: Size,
    pub size: Pixels,
    pub line_height: LineHeight,
    pub font: Font,
    pub align_x: Alignment,
    pub align_y: Vertical,
    pub shaping: Shaping,
    pub wrapping: Wrapping,
}Expand description
A paragraph.
Fields§
§content: ContentThe content of the paragraph.
bounds: SizeThe bounds of the paragraph.
size: PixelsThe size of the Text in logical pixels.
line_height: LineHeightThe line height of the Text.
font: FontThe font of the Text.
align_x: AlignmentThe horizontal alignment of the Text.
align_y: VerticalThe vertical alignment of the Text.
shaping: Shaping§wrapping: WrappingImplementations§
Trait Implementations§
impl<Content: Copy, Font: Copy> Copy for Text<Content, Font>
Auto Trait Implementations§
impl<Content, Font> Freeze for Text<Content, Font>
impl<Content, Font> RefUnwindSafe for Text<Content, Font>where
    Content: RefUnwindSafe,
    Font: RefUnwindSafe,
impl<Content, Font> Send for Text<Content, Font>
impl<Content, Font> Sync for Text<Content, Font>
impl<Content, Font> Unpin for Text<Content, Font>
impl<Content, Font> UnwindSafe for Text<Content, Font>where
    Content: UnwindSafe,
    Font: 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