pub struct ParagraphStyle {
pub text_align: TextAlign,
pub text_direction: TextDirection,
pub line_height: TextUnit,
pub text_indent: Option<TextIndent>,
pub platform_style: Option<PlatformParagraphStyle>,
pub line_height_style: Option<LineHeightStyle>,
pub line_break: LineBreak,
pub hyphens: Hyphens,
pub text_motion: Option<TextMotion>,
}Fields§
§text_align: TextAlign§text_direction: TextDirection§line_height: TextUnit§text_indent: Option<TextIndent>§platform_style: Option<PlatformParagraphStyle>§line_height_style: Option<LineHeightStyle>§line_break: LineBreak§hyphens: Hyphens§text_motion: Option<TextMotion>Implementations§
Source§impl ParagraphStyle
impl ParagraphStyle
pub fn merge(&self, other: &ParagraphStyle) -> ParagraphStyle
pub fn plus(&self, other: &ParagraphStyle) -> ParagraphStyle
Trait Implementations§
Source§impl Clone for ParagraphStyle
impl Clone for ParagraphStyle
Source§fn clone(&self) -> ParagraphStyle
fn clone(&self) -> ParagraphStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParagraphStyle
impl Debug for ParagraphStyle
Source§impl Default for ParagraphStyle
impl Default for ParagraphStyle
Source§impl PartialEq for ParagraphStyle
impl PartialEq for ParagraphStyle
impl StructuralPartialEq for ParagraphStyle
Auto Trait Implementations§
impl Freeze for ParagraphStyle
impl RefUnwindSafe for ParagraphStyle
impl Send for ParagraphStyle
impl Sync for ParagraphStyle
impl Unpin for ParagraphStyle
impl UnsafeUnpin for ParagraphStyle
impl UnwindSafe for ParagraphStyle
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