[−][src]Struct cansi::CategorisedSlice
Data structure that holds information about colouring and styling of a text slice.
Fields
text: &'text str
The text slice.
fg_colour: Color
The foreground (or text) colour.
bg_colour: Color
The background colour.
intensity: Intensity
The emphasis state (bold, faint, normal).
italic: bool
Italicised.
underline: bool
Underlined.
blink: bool
Slow blink text.
reversed: bool
Inverted colours. See https://en.wikipedia.org/wiki/Reverse_video.
Invisible text.
strikethrough: bool
Struck-through.
Trait Implementations
impl<'text> Clone for CategorisedSlice<'text>
[src]
fn clone(&self) -> CategorisedSlice<'text>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'text> Eq for CategorisedSlice<'text>
[src]
impl<'text> Copy for CategorisedSlice<'text>
[src]
impl<'text> PartialEq<CategorisedSlice<'text>> for CategorisedSlice<'text>
[src]
fn eq(&self, other: &CategorisedSlice<'text>) -> bool
[src]
fn ne(&self, other: &CategorisedSlice<'text>) -> bool
[src]
impl<'text> Debug for CategorisedSlice<'text>
[src]
Auto Trait Implementations
impl<'text> Send for CategorisedSlice<'text>
impl<'text> Sync for CategorisedSlice<'text>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,