Enum termwiz::cell::SemanticType
source · #[repr(u8)]
pub enum SemanticType {
Output,
Input,
Prompt,
}
Expand description
Describes the semantic “type” of the cell. This categorizes cells into Output (from the actions the user is taking; this is the default if left unspecified), Input (that the user typed) and Prompt (effectively, “chrome” provided by the shell or application that the user is interacting with.
Variants§
Trait Implementations§
source§impl Clone for SemanticType
impl Clone for SemanticType
source§fn clone(&self) -> SemanticType
fn clone(&self) -> SemanticType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SemanticType
impl Debug for SemanticType
source§impl Default for SemanticType
impl Default for SemanticType
source§impl<'de> Deserialize<'de> for SemanticType
impl<'de> Deserialize<'de> for SemanticType
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
source§impl FromDynamic for SemanticType
impl FromDynamic for SemanticType
fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>
source§impl Ord for SemanticType
impl Ord for SemanticType
source§fn cmp(&self, other: &SemanticType) -> Ordering
fn cmp(&self, other: &SemanticType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SemanticType> for SemanticType
impl PartialEq<SemanticType> for SemanticType
source§fn eq(&self, other: &SemanticType) -> bool
fn eq(&self, other: &SemanticType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SemanticType> for SemanticType
impl PartialOrd<SemanticType> for SemanticType
source§fn partial_cmp(&self, other: &SemanticType) -> Option<Ordering>
fn partial_cmp(&self, other: &SemanticType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 more