pub struct Attrs(pub u8);Expand description
Text attribute bits. A plain u8 rather than a bitflags dependency —
there are six of them and they never leave this crate untyped.
Tuple Fields§
§0: u8Implementations§
Source§impl Attrs
impl Attrs
pub const NONE: Attrs
pub const BOLD: Attrs
pub const ITALIC: Attrs
pub const UNDERLINE: Attrs
pub const STRIKETHROUGH: Attrs
pub fn contains(self, other: Attrs) -> bool
pub fn union(self, other: Attrs) -> Attrs
pub fn remove(self, other: Attrs) -> Attrs
pub fn is_empty(self) -> bool
Trait Implementations§
impl Copy for Attrs
impl Eq for Attrs
impl StructuralPartialEq for Attrs
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnsafeUnpin for Attrs
impl UnwindSafe for Attrs
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