pub enum AttributeChange {
Intensity(Intensity),
Underline(Underline),
Italic(bool),
Blink(Blink),
Reverse(bool),
StrikeThrough(bool),
Invisible(bool),
Foreground(ColorAttribute),
Background(ColorAttribute),
Hyperlink(Option<Arc<Hyperlink>>),
}Expand description
Models a change in the attributes of a cell in a stream of changes. Each variant specifies one of the possible attributes; the corresponding value holds the new value to be used for that attribute.
Variants§
Intensity(Intensity)
Underline(Underline)
Italic(bool)
Blink(Blink)
Reverse(bool)
StrikeThrough(bool)
Invisible(bool)
Foreground(ColorAttribute)
Background(ColorAttribute)
Hyperlink(Option<Arc<Hyperlink>>)
Implementations§
Trait Implementations§
Source§impl Clone for AttributeChange
impl Clone for AttributeChange
Source§fn clone(&self) -> AttributeChange
fn clone(&self) -> AttributeChange
Returns a duplicate 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 AttributeChange
impl Debug for AttributeChange
Source§impl<'de> Deserialize<'de> for AttributeChange
impl<'de> Deserialize<'de> for AttributeChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AttributeChange> for Change
impl From<AttributeChange> for Change
Source§fn from(c: AttributeChange) -> Self
fn from(c: AttributeChange) -> Self
Converts to this type from the input type.
Source§impl FromDynamic for AttributeChange
impl FromDynamic for AttributeChange
fn from_dynamic( value: &Value, options: FromDynamicOptions, ) -> Result<Self, Error>
Source§impl PartialEq for AttributeChange
impl PartialEq for AttributeChange
Source§impl Serialize for AttributeChange
impl Serialize for AttributeChange
Source§impl ToDynamic for AttributeChange
impl ToDynamic for AttributeChange
fn to_dynamic(&self) -> Value
impl Eq for AttributeChange
impl StructuralPartialEq for AttributeChange
Auto Trait Implementations§
impl Freeze for AttributeChange
impl RefUnwindSafe for AttributeChange
impl Send for AttributeChange
impl Sync for AttributeChange
impl Unpin for AttributeChange
impl UnwindSafe for AttributeChange
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