pub struct Decoration<T = F48Dot16> {
pub position: T,
pub thickness: T,
}Expand description
The position and thickness of an underline or strikethrough.
Position is measured from the baseline to the top of the stroke. Values are in font units unless a caller names another unit.
Fields§
§position: TPosition of the top of the stroke relative to the baseline.
thickness: TSuggested stroke thickness.
Trait Implementations§
Source§impl<T> Clone for Decoration<T>where
T: Clone,
impl<T> Clone for Decoration<T>where
T: Clone,
Source§fn clone(&self) -> Decoration<T>
fn clone(&self) -> Decoration<T>
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<T> Copy for Decoration<T>where
T: Copy,
Source§impl<T> Debug for Decoration<T>where
T: Debug,
impl<T> Debug for Decoration<T>where
T: Debug,
Source§impl<T> Default for Decoration<T>where
T: Default,
impl<T> Default for Decoration<T>where
T: Default,
Source§fn default() -> Decoration<T>
fn default() -> Decoration<T>
Returns the “default value” for a type. Read more
impl<T> Eq for Decoration<T>where
T: Eq,
Source§impl<T> PartialEq for Decoration<T>where
T: PartialEq,
impl<T> PartialEq for Decoration<T>where
T: PartialEq,
impl<T> StructuralPartialEq for Decoration<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Decoration<T>where
T: Freeze,
impl<T> RefUnwindSafe for Decoration<T>where
T: RefUnwindSafe,
impl<T> Send for Decoration<T>where
T: Send,
impl<T> Sync for Decoration<T>where
T: Sync,
impl<T> Unpin for Decoration<T>where
T: Unpin,
impl<T> UnsafeUnpin for Decoration<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Decoration<T>where
T: UnwindSafe,
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