pub struct Decoration {
pub offset: f32,
pub thickness: f32,
}
Expand description
Metrics for a text decoration.
This represents the suggested offset and thickness of an underline or strikeout text decoration.
Fields§
§offset: f32
Offset to the top of the decoration from the baseline.
thickness: f32
Thickness of the decoration.
Trait Implementations§
source§impl Clone for Decoration
impl Clone for Decoration
source§fn clone(&self) -> Decoration
fn clone(&self) -> Decoration
Returns a copy of the value. Read more
1.0.0 · 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 Decoration
impl Debug for Decoration
source§impl Default for Decoration
impl Default for Decoration
source§fn default() -> Decoration
fn default() -> Decoration
Returns the “default value” for a type. Read more
source§impl PartialEq for Decoration
impl PartialEq for Decoration
impl Copy 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)