pub enum AttachColor {
Index(u8),
Rgb([u8; 3]),
}Expand description
A color of a cell of a taken-over terminal: one of the terminal’s 256 indexed colors, or a direct RGB color.
Variants§
Index(u8)
An indexed color: 0-15 are the terminal’s own, 16-255 the xterm cube.
Rgb([u8; 3])
A direct color, as [red, green, blue].
Trait Implementations§
Source§impl Clone for AttachColor
impl Clone for AttachColor
impl Copy for AttachColor
Source§impl Debug for AttachColor
impl Debug for AttachColor
Source§impl<'de> Deserialize<'de> for AttachColor
impl<'de> Deserialize<'de> for AttachColor
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
impl Eq for AttachColor
Source§impl Hash for AttachColor
impl Hash for AttachColor
Source§impl PartialEq for AttachColor
impl PartialEq for AttachColor
Source§impl Serialize for AttachColor
impl Serialize for AttachColor
impl StructuralPartialEq for AttachColor
Auto Trait Implementations§
impl Freeze for AttachColor
impl RefUnwindSafe for AttachColor
impl Send for AttachColor
impl Sync for AttachColor
impl Unpin for AttachColor
impl UnsafeUnpin for AttachColor
impl UnwindSafe for AttachColor
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