pub enum TextDecoration {
None,
Underline,
}Expand description
Paint-only line decoration applied after text shaping and layout.
Possible values are no decoration and underline.
§Examples
use ailloli_ui_core::TextDecoration;
assert_eq!(TextDecoration::default(), TextDecoration::None);Variants§
None
No additional line; this is the default.
Underline
Paint an underline without changing text shaping or layout metrics.
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 moreSource§impl Debug for TextDecoration
impl Debug for TextDecoration
Source§impl Default for TextDecoration
impl Default for TextDecoration
Source§fn default() -> TextDecoration
fn default() -> TextDecoration
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextDecoration
impl PartialEq for TextDecoration
impl Copy for TextDecoration
impl Eq 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 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