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() -> TextAttributes
pub const fn all() -> TextAttributes
pub const fn from_attribute(attribute: TextAttribute) -> TextAttributes
pub const fn union(self, other: TextAttributes) -> TextAttributes
pub const fn difference(self, other: TextAttributes) -> TextAttributes
pub const fn intersection(self, other: TextAttributes) -> TextAttributes
pub const fn contains(self, attribute: TextAttribute) -> bool
pub const fn contains_all(self, other: TextAttributes) -> 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§fn bitor(
self,
rhs: TextAttribute,
) -> <TextAttributes as BitOr<TextAttribute>>::Output
fn bitor( self, rhs: TextAttribute, ) -> <TextAttributes as BitOr<TextAttribute>>::Output
Performs the
| operation. Read moreSource§impl BitOr for TextAttributes
impl BitOr for TextAttributes
Source§type Output = TextAttributes
type Output = TextAttributes
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: TextAttributes) -> <TextAttributes as BitOr>::Output
fn bitor(self, rhs: TextAttributes) -> <TextAttributes as BitOr>::Output
Performs the
| operation. Read moreSource§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) -> TextAttributes
fn from(attribute: TextAttribute) -> TextAttributes
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§type Item = TextAttribute
type Item = TextAttribute
The type of the elements being iterated over.
Source§type IntoIter = TextAttributeIter
type IntoIter = TextAttributeIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <TextAttributes as IntoIterator>::IntoIter
fn into_iter(self) -> <TextAttributes as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
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