pub struct Attr(/* private fields */);Expand description
Text attributes
Implementations§
Source§impl Attr
impl Attr
pub const NORMAL: Attr
pub const BOLD: Attr
pub const DIM: Attr
pub const ITALIC: Attr
pub const UNDERLINE: Attr
pub const BLINK: Attr
pub const REVERSE: Attr
pub const HIDDEN: Attr
pub const STRIKETHROUGH: Attr
pub const fn new() -> Self
pub const fn bits(&self) -> u16
pub const fn contains(&self, other: Attr) -> bool
pub const fn is_empty(&self) -> bool
Trait Implementations§
impl Copy for Attr
impl Eq for Attr
impl StructuralPartialEq for Attr
Auto Trait Implementations§
impl Freeze for Attr
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnwindSafe for Attr
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