Struct Paragraph Options
pub struct ParagraphOptions {
pub width: f64,
pub line_height: f64,
pub alignment: TextAlignment,
}Expand description
Explicit finite positive width and baseline spacing, in shaping size units. Whitespace is retained, so trailing-space advance participates in wrapping.
Fields§
§width: f64§line_height: f64§alignment: TextAlignmentTrait Implementations§
§impl Clone for ParagraphOptions
impl Clone for ParagraphOptions
§fn clone(&self) -> ParagraphOptions
fn clone(&self) -> ParagraphOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParagraphOptions
§impl Debug for ParagraphOptions
impl Debug for ParagraphOptions
§impl PartialEq for ParagraphOptions
impl PartialEq for ParagraphOptions
impl StructuralPartialEq for ParagraphOptions
Auto Trait Implementations§
impl Freeze for ParagraphOptions
impl RefUnwindSafe for ParagraphOptions
impl Send for ParagraphOptions
impl Sync for ParagraphOptions
impl Unpin for ParagraphOptions
impl UnsafeUnpin for ParagraphOptions
impl UnwindSafe for ParagraphOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more