Struct usvg_tree::TextDecorationStyle
source · pub struct TextDecorationStyle {
pub fill: Option<Fill>,
pub stroke: Option<Stroke>,
}
Expand description
A text span decoration style.
In SVG, text decoration and text it’s applied to can have different styles. So you can have black text and green underline.
Also, in SVG you can specify text decoration stroking.
Fields§
§fill: Option<Fill>
A fill style.
stroke: Option<Stroke>
A stroke style.
Trait Implementations§
source§impl Clone for TextDecorationStyle
impl Clone for TextDecorationStyle
source§fn clone(&self) -> TextDecorationStyle
fn clone(&self) -> TextDecorationStyle
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TextDecorationStyle
impl !Send for TextDecorationStyle
impl !Sync for TextDecorationStyle
impl Unpin for TextDecorationStyle
impl !UnwindSafe for TextDecorationStyle
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