Struct VerylToken

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

Fields§

§token: Token§comments: Vec<Token>

Implementations§

Source§

impl VerylToken

Source

pub fn new(token: Token) -> Self

Source

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

Source

pub fn append(&self, prefix: &Option<String>, suffix: &Option<String>) -> Self

Source

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

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 Display 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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&BackQuoteToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&BaseLessToken> for VerylToken

Source§

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

Source§

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

Source§

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<&BreakToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&CaseToken> for VerylToken

Source§

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<&ClockNegedgeToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ClockPosedgeToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ClockToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ColonColonLAngleToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ColonColonToken> for VerylToken

Source§

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

Source§

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

Source§

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<&ConstToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ConverseToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&DefaultToken> for VerylToken

Source§

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<&DollarIdentifierToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&DotDotEquToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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<&EmbedContentToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&EmbedToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&EnumToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&IncludeToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&InitialToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&LetToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&LogicToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&Operator01Token> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&ParamToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&PlusColonToken> for VerylToken

Source§

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<&ProtoToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&PubToken> for VerylToken

Source§

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<&QuoteLBraceToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&RAngleToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&ResetAsyncHighToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ResetAsyncLowToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ResetSyncHighToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ResetSyncLowToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ResetToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&ReturnToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&SwitchToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&TriToken> for VerylToken

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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<&UnsafeToken> for VerylToken

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<&VarToken> for VerylToken

Source§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

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

Change the background color to black
Source§

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

Change the foreground color to red
Source§

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

Change the background color to red
Source§

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

Change the foreground color to green
Source§

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

Change the background color to green
Source§

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

Change the foreground color to yellow
Source§

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

Change the background color to yellow
Source§

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

Change the foreground color to blue
Source§

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

Change the background color to blue
Source§

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

Change the foreground color to magenta
Source§

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

Change the background color to magenta
Source§

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

Change the foreground color to purple
Source§

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

Change the background color to purple
Source§

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

Change the foreground color to cyan
Source§

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

Change the background color to cyan
Source§

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

Change the foreground color to white
Source§

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

Change the background color to white
Source§

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

Change the foreground color to the terminal default
Source§

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

Change the background color to the terminal default
Source§

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

Change the foreground color to bright black
Source§

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

Change the background color to bright black
Source§

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

Change the foreground color to bright red
Source§

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

Change the background color to bright red
Source§

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

Change the foreground color to bright green
Source§

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

Change the background color to bright green
Source§

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

Change the foreground color to bright yellow
Source§

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

Change the background color to bright yellow
Source§

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

Change the foreground color to bright blue
Source§

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

Change the background color to bright blue
Source§

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

Change the foreground color to bright magenta
Source§

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

Change the background color to bright magenta
Source§

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

Change the foreground color to bright purple
Source§

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

Change the background color to bright purple
Source§

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

Change the foreground color to bright cyan
Source§

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

Change the background color to bright cyan
Source§

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

Change the foreground color to bright white
Source§

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

Change the background color to bright white
Source§

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

Make the text bold
Source§

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

Make the text dim
Source§

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

Make the text italicized
Source§

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

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

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

Swap the foreground and background colors
Source§

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

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, 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,

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.