Enum termwiz::cell::AttributeChange
source · [−]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>>)
Trait Implementations
sourceimpl Clone for AttributeChange
impl Clone for AttributeChange
sourcefn clone(&self) -> AttributeChange
fn clone(&self) -> AttributeChange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttributeChange
impl Debug for AttributeChange
sourceimpl<'de> Deserialize<'de> for AttributeChange
impl<'de> Deserialize<'de> for AttributeChange
sourcefn 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
sourceimpl From<AttributeChange> for Change
impl From<AttributeChange> for Change
sourcefn from(c: AttributeChange) -> Self
fn from(c: AttributeChange) -> Self
Converts to this type from the input type.
sourceimpl FromDynamic for AttributeChange
impl FromDynamic for AttributeChange
fn from_dynamic(
value: &Value,
options: FromDynamicOptions
) -> Result<Self, Error>
sourceimpl PartialEq<AttributeChange> for AttributeChange
impl PartialEq<AttributeChange> for AttributeChange
sourcefn eq(&self, other: &AttributeChange) -> bool
fn eq(&self, other: &AttributeChange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttributeChange) -> bool
fn ne(&self, other: &AttributeChange) -> bool
This method tests for !=
.
sourceimpl Serialize for AttributeChange
impl Serialize for AttributeChange
sourceimpl ToDynamic for AttributeChange
impl ToDynamic for AttributeChange
fn to_dynamic(&self) -> Value
impl Eq for AttributeChange
impl StructuralEq for AttributeChange
impl StructuralPartialEq for AttributeChange
Auto Trait Implementations
impl RefUnwindSafe for AttributeChange
impl Send for AttributeChange
impl Sync for AttributeChange
impl Unpin for AttributeChange
impl UnwindSafe for AttributeChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more