pub enum Layer {
Foreground,
Background,
}Expand description
The targeted display layer: Foreground or background.
Variants§
Implementations§
Source§impl Layer
impl Layer
Sourcepub fn is_foreground(&self) -> bool
pub fn is_foreground(&self) -> bool
Determine whether this layer is the foreground.
Sourcepub fn is_background(&self) -> bool
pub fn is_background(&self) -> bool
Determine whether this layer is the background.
Sourcepub fn offset(&self) -> u8
pub fn offset(&self) -> u8
Determine the offset for this layer.
The offset is added to the SGR parameter values for foreground colors
and therefore zero for Layer::Foreground.
Trait Implementations§
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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