pub struct ParagraphProperties {
pub align: Option<TextAlign>,
pub margin: Edges<Length>,
pub text_indent: Option<Length>,
pub line_height: Option<Measure>,
pub background: Option<Color>,
pub break_before: Option<Break>,
pub break_after: Option<Break>,
pub border: Edges<Border>,
pub padding: Edges<Length>,
}Expand description
Paragraph formatting.
Fields§
§align: Option<TextAlign>Horizontal alignment.
margin: Edges<Length>Space outside the paragraph on each edge.
text_indent: Option<Length>The first line’s extra indent, which is negative for a hanging indent.
line_height: Option<Measure>Line spacing, absolute or a proportion of the font size.
background: Option<Color>Fill behind the paragraph.
break_before: Option<Break>A break asked for before the paragraph.
break_after: Option<Break>A break asked for after it.
border: Edges<Border>Borders, per edge.
padding: Edges<Length>Space between the border and the text, per edge.
Trait Implementations§
Source§impl Clone for ParagraphProperties
impl Clone for ParagraphProperties
Source§impl Debug for ParagraphProperties
impl Debug for ParagraphProperties
Source§impl Default for ParagraphProperties
impl Default for ParagraphProperties
Source§impl PartialEq for ParagraphProperties
impl PartialEq for ParagraphProperties
impl StructuralPartialEq for ParagraphProperties
Auto Trait Implementations§
impl Freeze for ParagraphProperties
impl RefUnwindSafe for ParagraphProperties
impl Send for ParagraphProperties
impl Sync for ParagraphProperties
impl Unpin for ParagraphProperties
impl UnsafeUnpin for ParagraphProperties
impl UnwindSafe for ParagraphProperties
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