[−][src]Struct rawcmd_style::Style
Style structure which represents a formatted command-line string.
Methods
impl Style
[src]
Style structure implementation.
pub fn new(txt: &str) -> Self
[src]
Returns a new instance.
pub fn bold(self) -> Self
[src]
Applies bold
style.
pub fn dim(self) -> Self
[src]
Applies dim
style.
pub fn italic(self) -> Self
[src]
Applies italic
style.
pub fn underline(self) -> Self
[src]
Applies underline
style.
pub fn blink(self) -> Self
[src]
Applies blink
style.
pub fn inverse(self) -> Self
[src]
Applies inverse
style.
[src]
Applies hidden
style.
pub fn black(self) -> Self
[src]
Applies black
style.
pub fn red(self) -> Self
[src]
Applies red
style.
pub fn green(self) -> Self
[src]
Applies green
style.
pub fn yellow(self) -> Self
[src]
Applies yellow
style.
pub fn blue(self) -> Self
[src]
Applies blue
style.
pub fn magenta(self) -> Self
[src]
Applies magenta
style.
pub fn cyan(self) -> Self
[src]
Applies cyan
style.
pub fn white(self) -> Self
[src]
Applies white
style.
pub fn bgblack(self) -> Self
[src]
Applies bgblack
style.
pub fn bgred(self) -> Self
[src]
Applies bgred
style.
pub fn bggreen(self) -> Self
[src]
Applies bggreen
style.
pub fn bgyellow(self) -> Self
[src]
Applies bgyellow
style.
pub fn bgblue(self) -> Self
[src]
Applies bgblue
style.
pub fn bgmagenta(self) -> Self
[src]
Applies bgmagenta
style.
pub fn bgcyan(self) -> Self
[src]
Applies bgcyan
style.
pub fn bgwhite(self) -> Self
[src]
Applies bgwhite
style.
pub fn clean(self) -> Self
[src]
Removes all styles.
Trait Implementations
impl Clone for Style
[src]
impl Debug for Style
[src]
impl Display for Style
[src]
Style structure implementation.
impl PartialEq<Style> for Style
[src]
impl StructuralPartialEq for Style
[src]
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,