pub struct Decoration {
pub kind: DecorationKind,
pub color: Option<Color>,
pub thickness: f32,
}Expand description
An underline / strike-through / overline, drawn from the font’s own decoration metrics (post/OS2 tables; skparagraph’s Decorations.cpp).
Fields§
§kind: DecorationKind§color: Option<Color>None = the text color.
thickness: f32Multiplier over the font’s suggested thickness.
Implementations§
Source§impl Decoration
impl Decoration
pub fn new(kind: DecorationKind) -> Self
Trait Implementations§
Source§impl Clone for Decoration
impl Clone for Decoration
Source§fn clone(&self) -> Decoration
fn clone(&self) -> Decoration
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 Decoration
Source§impl Debug for Decoration
impl Debug for Decoration
Source§impl PartialEq for Decoration
impl PartialEq for Decoration
impl StructuralPartialEq for Decoration
Auto Trait Implementations§
impl Freeze for Decoration
impl RefUnwindSafe for Decoration
impl Send for Decoration
impl Sync for Decoration
impl Unpin for Decoration
impl UnsafeUnpin for Decoration
impl UnwindSafe for Decoration
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