Enum ansitok::ElementKind
source · [−]pub enum ElementKind {
Esc,
Sgr,
Csi,
Osc,
Text,
}
Expand description
A type of a section in a text with ANSI sequences.
Variants
Esc
ESC starts all the escape sequences <^[> ‘0x1B’.
Sgr
SGR (Select Graphic Rendition) parameters.
Csi
CSI (Control Sequence Introducer) sequences.
Osc
OSC (Operating System Command) sequences.
Text
Text section.
Trait Implementations
sourceimpl Clone for ElementKind
impl Clone for ElementKind
sourcefn clone(&self) -> ElementKind
fn clone(&self) -> ElementKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ElementKind
impl Debug for ElementKind
sourceimpl Ord for ElementKind
impl Ord for ElementKind
sourcefn cmp(&self, other: &ElementKind) -> Ordering
fn cmp(&self, other: &ElementKind) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ElementKind> for ElementKind
impl PartialEq<ElementKind> for ElementKind
sourcefn eq(&self, other: &ElementKind) -> bool
fn eq(&self, other: &ElementKind) -> bool
sourceimpl PartialOrd<ElementKind> for ElementKind
impl PartialOrd<ElementKind> for ElementKind
sourcefn partial_cmp(&self, other: &ElementKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ElementKind) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ElementKind
impl Eq for ElementKind
impl StructuralEq for ElementKind
impl StructuralPartialEq for ElementKind
Auto Trait Implementations
impl RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnwindSafe for ElementKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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