Enum cursive::theme::Effect [−]
#[repr(u8)]pub enum Effect { Simple, Reverse, Bold, Italic, Underline, }
Text effect
Variants
Simple
No effect
Reverse
Reverses foreground and background colors
Bold
Prints foreground in bold
Italic
Prints foreground in italic
Underline
Prints foreground with underline
Trait Implementations
impl Copy for Effect
impl Copy for Effect
impl Clone for Effect
impl Clone for Effect
fn clone(&self) -> Effect
fn clone(&self) -> Effect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for Effect
impl PartialOrd for Effect
fn partial_cmp(&self, other: &Effect) -> Option<Ordering>
fn partial_cmp(&self, other: &Effect) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Effect
impl Ord for Effect
fn cmp(&self, other: &Effect) -> Ordering
fn cmp(&self, other: &Effect) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for Effect
impl PartialEq for Effect
fn eq(&self, other: &Effect) -> bool
fn eq(&self, other: &Effect) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Effect
impl Eq for Effect
impl Hash for Effect
impl Hash for Effect
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Effect
impl Debug for Effect
impl EnumSetType for Effect
impl EnumSetType for Effect
type Repr = u8
const ZERO: Self::Repr
ZERO: Self::Repr = 0
const ONE: Self::Repr
ONE: Self::Repr = 1
const VARIANT_COUNT: u8
VARIANT_COUNT: u8 = 0u8 + 1u8 + 1u8 + 1u8 + 1u8 + 1u8
fn count_ones(val: Self::Repr) -> usize
fn count_ones(val: Self::Repr) -> usize
fn into_u8(self) -> u8
fn into_u8(self) -> u8
fn from_u8(val: u8) -> Self
fn from_u8(val: u8) -> Self
fn repr_to_u128(bits: Self::Repr) -> u128
fn repr_to_u128(bits: Self::Repr) -> u128
fn repr_from_u128(bits: u128) -> Self::Repr
fn repr_from_u128(bits: u128) -> Self::Repr
impl<O: Into<EnumSet<Effect>>> Sub<O> for Effect
impl<O: Into<EnumSet<Effect>>> Sub<O> for Effect
type Output = EnumSet<Effect>
The resulting type after applying the -
operator.
fn sub(self, other: O) -> Self::Output
fn sub(self, other: O) -> Self::Output
Performs the -
operation.
impl<O: Into<EnumSet<Effect>>> BitAnd<O> for Effect
impl<O: Into<EnumSet<Effect>>> BitAnd<O> for Effect
type Output = EnumSet<Effect>
The resulting type after applying the &
operator.
fn bitand(self, other: O) -> Self::Output
fn bitand(self, other: O) -> Self::Output
Performs the &
operation.
impl<O: Into<EnumSet<Effect>>> BitOr<O> for Effect
impl<O: Into<EnumSet<Effect>>> BitOr<O> for Effect
type Output = EnumSet<Effect>
The resulting type after applying the |
operator.
fn bitor(self, other: O) -> Self::Output
fn bitor(self, other: O) -> Self::Output
Performs the |
operation.
impl<O: Into<EnumSet<Effect>>> BitXor<O> for Effect
impl<O: Into<EnumSet<Effect>>> BitXor<O> for Effect
type Output = EnumSet<Effect>
The resulting type after applying the ^
operator.
fn bitxor(self, other: O) -> Self::Output
fn bitxor(self, other: O) -> Self::Output
Performs the ^
operation.
impl Not for Effect
impl Not for Effect
type Output = EnumSet<Effect>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
fn not(self) -> Self::Output
Performs the unary !
operation.
impl PartialEq<EnumSet<Effect>> for Effect
impl PartialEq<EnumSet<Effect>> for Effect
fn eq(&self, other: &EnumSet<Effect>) -> bool
fn eq(&self, other: &EnumSet<Effect>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<Effect> for Style
[src]
impl From<Effect> for Style