pub struct TextDecoration { /* private fields */ }Implementations§
Source§impl TextDecoration
impl TextDecoration
pub const fn new(kind: TextDecorationKind) -> Self
pub const fn kind(&self) -> TextDecorationKind
pub const fn thickness(&self) -> Option<Pt>
pub const fn offset(&self) -> Option<Pt>
pub fn with_thickness(self, thickness: Pt) -> Self
pub fn with_offset(self, offset: Pt) -> Self
Trait Implementations§
Source§impl Clone for TextDecoration
impl Clone for TextDecoration
Source§fn clone(&self) -> TextDecoration
fn clone(&self) -> TextDecoration
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 moreSource§impl Debug for TextDecoration
impl Debug for TextDecoration
Source§impl PartialEq for TextDecoration
impl PartialEq for TextDecoration
Source§fn eq(&self, other: &TextDecoration) -> bool
fn eq(&self, other: &TextDecoration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextDecoration
Auto Trait Implementations§
impl Freeze for TextDecoration
impl RefUnwindSafe for TextDecoration
impl Send for TextDecoration
impl Sync for TextDecoration
impl Unpin for TextDecoration
impl UnsafeUnpin 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