pub struct TextDecoration { /* private fields */ }
Expand description
A text span decoration.
Implementations§
source§impl TextDecoration
impl TextDecoration
sourcepub fn underline(&self) -> Option<&TextDecorationStyle>
pub fn underline(&self) -> Option<&TextDecorationStyle>
An optional underline and its style.
sourcepub fn overline(&self) -> Option<&TextDecorationStyle>
pub fn overline(&self) -> Option<&TextDecorationStyle>
An optional overline and its style.
sourcepub fn line_through(&self) -> Option<&TextDecorationStyle>
pub fn line_through(&self) -> Option<&TextDecorationStyle>
An optional line-through and its style.
Trait Implementations§
source§impl Clone for TextDecoration
impl Clone for TextDecoration
source§fn clone(&self) -> TextDecoration
fn clone(&self) -> TextDecoration
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 Freeze for TextDecoration
impl !RefUnwindSafe for TextDecoration
impl Send for TextDecoration
impl Sync for TextDecoration
impl Unpin for TextDecoration
impl !UnwindSafe for TextDecoration
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
)