pub struct TextDecoration { /* private fields */ }Expand description
A linear decoration to draw near the text.
Implementations§
Source§impl TextDecoration
impl TextDecoration
Sourcepub const NONE: TextDecoration
pub const NONE: TextDecoration
Do not draw a decoration
Sourcepub const UNDERLINE: TextDecoration
pub const UNDERLINE: TextDecoration
Draw a line underneath each line of text
Sourcepub const OVERLINE: TextDecoration
pub const OVERLINE: TextDecoration
Draw a line above each line of text
Sourcepub const LINE_THROUGH: TextDecoration
pub const LINE_THROUGH: TextDecoration
Draw a line through each line of text
Sourcepub fn combine(decorations: &[TextDecoration]) -> TextDecoration
pub fn combine(decorations: &[TextDecoration]) -> TextDecoration
Creates a decoration that paints the union of all the given decorations.
Sourcepub fn mask_value(self) -> i32
pub fn mask_value(self) -> i32
The bit mask value that represents this decoration.
Sourcepub fn contains(self, other: TextDecoration) -> bool
pub fn contains(self, other: TextDecoration) -> bool
Whether this decoration will paint at least as much decoration as the given decoration.
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 moreimpl Copy for TextDecoration
Source§impl Debug for TextDecoration
impl Debug for TextDecoration
Source§impl Display for TextDecoration
impl Display for TextDecoration
impl Eq for TextDecoration
Source§impl Hash for TextDecoration
impl Hash for TextDecoration
Source§impl PartialEq for TextDecoration
impl PartialEq for TextDecoration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.