pub struct TextAttributes(/* private fields */);Expand description
A set of terminal text attributes with no duplicates or ordering.
Implementations§
Source§impl TextAttributes
impl TextAttributes
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn from_attribute(attribute: TextAttribute) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
pub const fn contains(self, attribute: TextAttribute) -> bool
pub const fn contains_all(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
pub const fn iter(self) -> TextAttributeIter ⓘ
Trait Implementations§
Source§impl BitOr<TextAttribute> for TextAttributes
impl BitOr<TextAttribute> for TextAttributes
Source§type Output = TextAttributes
type Output = TextAttributes
The resulting type after applying the
| operator.Source§impl BitOr for TextAttributes
impl BitOr for TextAttributes
Source§impl Clone for TextAttributes
impl Clone for TextAttributes
Source§fn clone(&self) -> TextAttributes
fn clone(&self) -> TextAttributes
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 TextAttributes
impl Debug for TextAttributes
Source§impl Default for TextAttributes
impl Default for TextAttributes
Source§fn default() -> TextAttributes
fn default() -> TextAttributes
Returns the “default value” for a type. Read more
Source§impl From<TextAttribute> for TextAttributes
impl From<TextAttribute> for TextAttributes
Source§fn from(attribute: TextAttribute) -> Self
fn from(attribute: TextAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for TextAttributes
impl Hash for TextAttributes
Source§impl IntoIterator for TextAttributes
impl IntoIterator for TextAttributes
Source§impl PartialEq for TextAttributes
impl PartialEq for TextAttributes
Source§fn eq(&self, other: &TextAttributes) -> bool
fn eq(&self, other: &TextAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextAttributes
impl Eq for TextAttributes
impl StructuralPartialEq for TextAttributes
Auto Trait Implementations§
impl Freeze for TextAttributes
impl RefUnwindSafe for TextAttributes
impl Send for TextAttributes
impl Sync for TextAttributes
impl Unpin for TextAttributes
impl UnsafeUnpin for TextAttributes
impl UnwindSafe for TextAttributes
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