pub struct ParagraphStyle {
pub align: ParagraphAlign,
pub indent: f64,
pub space_before: f64,
pub space_after: f64,
pub list: ListStyle,
pub list_level: u8,
}Expand description
A ParagraphRun’s attributes with no range attached.
Fields§
§align: ParagraphAlign§indent: f64Leading indent in points, from the reading direction’s start edge. A list item’s total indent is this plus whatever the platform reserves for its marker.
space_before: f64§space_after: f64§list: ListStyle§list_level: u8Nesting depth for a list item (0 = outermost). Ignored when list is None.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParagraphStyle
Source§impl Debug for ParagraphStyle
impl Debug for ParagraphStyle
Source§impl Default for ParagraphStyle
impl Default for ParagraphStyle
Source§fn default() -> ParagraphStyle
fn default() -> ParagraphStyle
Returns the “default value” for a type. Read more
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