pub enum Alpha {
Opaque,
Transparent,
Blend,
HighContrast,
}Expand description
Alpha information, part of a Channel.
Variants§
Opaque
Indicates a Cell’s foreground or background color
is used unchanged.
This is the default.
Transparent
Indicates a Cell’s foreground or background color
is derived entirely from the Cells underneath it.
Blend
Indicates a Cell’s foreground or background color will
be a composite between its color and the Cells’ corresponding colors.
HighContrast
Indicates the foreground color will be high-contrast, relative to the computed background.
The background cannot be high-contrast.
Implementations§
Trait Implementations§
Source§impl From<Alpha> for NcAlpha_u32
impl From<Alpha> for NcAlpha_u32
Source§fn from(align: Alpha) -> NcAlpha_u32
fn from(align: Alpha) -> NcAlpha_u32
Converts to this type from the input type.
Source§impl From<u32> for Alpha
impl From<u32> for Alpha
Source§fn from(ncu: NcAlpha_u32) -> Alpha
fn from(ncu: NcAlpha_u32) -> Alpha
Converts to this type from the input type.
impl Copy for Alpha
impl Eq for Alpha
impl StructuralPartialEq for Alpha
Auto Trait Implementations§
impl Freeze for Alpha
impl RefUnwindSafe for Alpha
impl Send for Alpha
impl Sync for Alpha
impl Unpin for Alpha
impl UnwindSafe for Alpha
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