pub struct ParagraphStyle {
pub alignment: HorizontalAlignment,
pub line_spacing: LineSpacing,
pub space_before: LengthUnit,
pub space_after: LengthUnit,
pub first_line_indent: LengthUnit,
pub left_indent: LengthUnit,
pub right_indent: LengthUnit,
pub keep_together: bool,
pub keep_with_next: bool,
pub page_break_before: bool,
}Expand description
段落样式
Fields§
§alignment: HorizontalAlignment§line_spacing: LineSpacing§space_before: LengthUnit§space_after: LengthUnit§first_line_indent: LengthUnit§left_indent: LengthUnit§right_indent: LengthUnit§keep_together: bool§keep_with_next: bool§page_break_before: boolTrait 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 (const: unstable) · 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
Source§fn eq(&self, other: &ParagraphStyle) -> bool
fn eq(&self, other: &ParagraphStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.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