pub struct VerylToken {
    pub token: Token,
    pub comments: Vec<Token>,
}

Fields§

§token: Token§comments: Vec<Token>

Implementations§

source§

impl VerylToken

source

pub fn replace(&self, text: &str) -> Self

source

pub fn append(&self, prefix: &str, postfix: &str) -> Self

source

pub fn text(&self) -> String

Trait Implementations§

source§

impl Clone for VerylToken

source§

fn clone(&self) -> VerylToken

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VerylToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl TryFrom<&AllBitToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AllBitToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AlwaysCombToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AlwaysCombToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AlwaysFfToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AlwaysFfToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AsToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AsToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AssignToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AssignToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AssignmentOperatorToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AssignmentOperatorToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AsyncHighToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AsyncHighToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&AsyncLowToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &AsyncLowToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&BaseLessToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &BaseLessToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&BasedToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &BasedToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&BitToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &BitToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&CaseToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &CaseToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ColonColonToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ColonColonToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ColonToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ColonToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&CommaToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &CommaToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&DefaultToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &DefaultToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&DollarToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &DollarToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&DotDotEquToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &DotDotEquToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&DotDotToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &DotDotToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&DotToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &DotToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ElseToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ElseToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&EnumToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &EnumToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&EquToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &EquToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ExponentToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ExponentToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ExportToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ExportToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&F32Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &F32Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&F64Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &F64Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&FinalToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &FinalToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&FixedPointToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &FixedPointToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ForToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ForToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&FunctionToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &FunctionToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&HashToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &HashToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&I32Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &I32Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&I64Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &I64Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&IdentifierToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &IdentifierToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&IfResetToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &IfResetToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&IfToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &IfToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ImportToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ImportToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InitialToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InitialToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InoutToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InoutToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InputToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InputToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InsideToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InsideToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InstToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InstToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&InterfaceToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &InterfaceToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LAngleToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LAngleToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LBraceToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LBraceToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LBracketToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LBracketToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LParenToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LParenToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LocalparamToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LocalparamToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LogicToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LogicToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&LsbToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &LsbToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&MinusColonToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &MinusColonToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&MinusGTToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &MinusGTToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ModportToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ModportToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ModuleToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ModuleToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&MsbToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &MsbToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&NegedgeToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &NegedgeToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator01Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator01Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator02Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator02Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator03Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator03Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator04Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator04Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator05Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator05Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator06Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator06Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator07Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator07Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator08Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator08Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator09Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator09Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator10Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator10Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&Operator11Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &Operator11Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&OutputToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &OutputToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&OutsideToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &OutsideToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&PackageToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &PackageToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ParameterToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ParameterToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&PlusColonToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &PlusColonToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&PosedgeToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &PosedgeToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&PubToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &PubToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RAngleToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RAngleToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RBraceToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RBraceToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RBracketToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RBracketToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RParenToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RParenToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RefToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RefToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&RepeatToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &RepeatToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&ReturnToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &ReturnToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&SemicolonToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &SemicolonToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&SignedToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &SignedToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StarToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StarToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StartToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StartToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StepToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StepToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StringLiteralToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StringLiteralToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StringToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StringToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&StructToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &StructToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&SyncHighToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &SyncHighToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&SyncLowToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &SyncLowToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&TriToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &TriToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&TypeToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &TypeToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&U32Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &U32Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&U64Token> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &U64Token) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&UnaryOperatorToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &UnaryOperatorToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&UnionToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &UnionToken) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&VarToken> for VerylToken

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(x: &VarToken) -> Result<Self, Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<D> OwoColorize for D

source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
source§

fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>

Change the foreground color to black
source§

fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>

Change the background color to black
source§

fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>

Change the foreground color to red
source§

fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>

Change the background color to red
source§

fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>

Change the foreground color to green
source§

fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>

Change the background color to green
source§

fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>

Change the foreground color to yellow
source§

fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>

Change the background color to yellow
source§

fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>

Change the foreground color to blue
source§

fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>

Change the background color to blue
source§

fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to magenta
source§

fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to magenta
source§

fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to purple
source§

fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to purple
source§

fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>

Change the foreground color to cyan
source§

fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>

Change the background color to cyan
source§

fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>

Change the foreground color to white
source§

fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>

Change the background color to white
source§

fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>

Change the foreground color to the terminal default
source§

fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>

Change the background color to the terminal default
source§

fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>

Change the foreground color to bright black
source§

fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>

Change the background color to bright black
source§

fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>

Change the foreground color to bright red
source§

fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>

Change the background color to bright red
source§

fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>

Change the foreground color to bright green
source§

fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>

Change the background color to bright green
source§

fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>

Change the foreground color to bright yellow
source§

fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>

Change the background color to bright yellow
source§

fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>

Change the foreground color to bright blue
source§

fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>

Change the background color to bright blue
source§

fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright magenta
source§

fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright magenta
source§

fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright purple
source§

fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright purple
source§

fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>

Change the foreground color to bright cyan
source§

fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>

Change the background color to bright cyan
source§

fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>

Change the foreground color to bright white
source§

fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>

Change the background color to bright white
source§

fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>

Make the text bold
source§

fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>

Make the text dim
source§

fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>

Make the text italicized
source§

fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>

Make the text italicized
Make the text blink
Make the text blink (but fast!)
source§

fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>

Swap the foreground and background colors
source§

fn hidden<'a>(&'a self) -> HiddenDisplay<'a, Self>

Hide the text
source§

fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>

Cross out the text
source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.