pub(crate) struct DecorationSpan {
pub(crate) width: f32,
pub(crate) transform: Transform,
}
Expand description
A text decoration span.
Basically a horizontal line, that will be used for underline, overline and line-through. It doesn’t have a height, since it depends on the Font metrics.
Fields§
§width: f32
§transform: Transform
Trait Implementations§
Source§impl Clone for DecorationSpan
impl Clone for DecorationSpan
Source§fn clone(&self) -> DecorationSpan
fn clone(&self) -> DecorationSpan
Returns a duplicate 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 moreimpl Copy for DecorationSpan
Auto Trait Implementations§
impl Freeze for DecorationSpan
impl RefUnwindSafe for DecorationSpan
impl Send for DecorationSpan
impl Sync for DecorationSpan
impl Unpin for DecorationSpan
impl UnwindSafe for DecorationSpan
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