Struct veryl_parser::finder::Finder

source ·
pub struct Finder {
    pub line: usize,
    pub column: usize,
    pub token: Option<Token>,
    pub token_group: Vec<Token>,
    /* private fields */
}

Fields§

§line: usize§column: usize§token: Option<Token>§token_group: Vec<Token>

Implementations§

source§

impl Finder

source

pub fn new() -> Self

Trait Implementations§

source§

impl Default for Finder

source§

fn default() -> Finder

Returns the “default value” for a type. Read more
source§

impl VerylWalker for Finder

source§

fn veryl_token(&mut self, arg: &VerylToken)

Semantic action for non-terminal ‘VerylToken’

source§

fn hierarchical_identifier(&mut self, arg: &HierarchicalIdentifier)

Semantic action for non-terminal ‘HierarchicalIdentifier’

source§

fn scoped_identifier(&mut self, arg: &ScopedIdentifier)

Semantic action for non-terminal ‘ScopedIdentifier’

source§

fn expression_identifier(&mut self, arg: &ExpressionIdentifier)

Semantic action for non-terminal ‘ExpressionIdentifier’

source§

fn start(&mut self, arg: &Start)

Semantic action for non-terminal ‘Start’
source§

fn string_literal(&mut self, arg: &StringLiteral)

Semantic action for non-terminal ‘StringLiteral’
source§

fn exponent(&mut self, arg: &Exponent)

Semantic action for non-terminal ‘Exponent’
source§

fn fixed_point(&mut self, arg: &FixedPoint)

Semantic action for non-terminal ‘FixedPoint’
source§

fn based(&mut self, arg: &Based)

Semantic action for non-terminal ‘Based’
source§

fn base_less(&mut self, arg: &BaseLess)

Semantic action for non-terminal ‘BaseLess’
source§

fn all_bit(&mut self, arg: &AllBit)

Semantic action for non-terminal ‘AllBit’
source§

fn assignment_operator(&mut self, arg: &AssignmentOperator)

Semantic action for non-terminal ‘AssignmentOperator’
source§

fn operator01(&mut self, arg: &Operator01)

Semantic action for non-terminal ‘Operator01’
source§

fn operator02(&mut self, arg: &Operator02)

Semantic action for non-terminal ‘Operator02’
source§

fn operator03(&mut self, arg: &Operator03)

Semantic action for non-terminal ‘Operator03’
source§

fn operator04(&mut self, arg: &Operator04)

Semantic action for non-terminal ‘Operator04’
source§

fn operator05(&mut self, arg: &Operator05)

Semantic action for non-terminal ‘Operator05’
source§

fn operator06(&mut self, arg: &Operator06)

Semantic action for non-terminal ‘Operator06’
source§

fn operator07(&mut self, arg: &Operator07)

Semantic action for non-terminal ‘Operator07’
source§

fn operator08(&mut self, arg: &Operator08)

Semantic action for non-terminal ‘Operator08’
source§

fn operator09(&mut self, arg: &Operator09)

Semantic action for non-terminal ‘Operator09’
source§

fn operator10(&mut self, arg: &Operator10)

Semantic action for non-terminal ‘Operator10’
source§

fn operator11(&mut self, arg: &Operator11)

Semantic action for non-terminal ‘Operator11’
source§

fn unary_operator(&mut self, arg: &UnaryOperator)

Semantic action for non-terminal ‘UnaryOperator’
source§

fn colon(&mut self, arg: &Colon)

Semantic action for non-terminal ‘Colon’
source§

fn colon_colon(&mut self, arg: &ColonColon)

Semantic action for non-terminal ‘ColonColon’
source§

fn comma(&mut self, arg: &Comma)

Semantic action for non-terminal ‘Comma’
source§

fn dollar(&mut self, arg: &Dollar)

Semantic action for non-terminal ‘Dollar’
source§

fn dot_dot(&mut self, arg: &DotDot)

Semantic action for non-terminal ‘DotDot’
source§

fn dot(&mut self, arg: &Dot)

Semantic action for non-terminal ‘Dot’
source§

fn equ(&mut self, arg: &Equ)

Semantic action for non-terminal ‘Equ’
source§

fn hash(&mut self, arg: &Hash)

Semantic action for non-terminal ‘Hash’
source§

fn l_angle(&mut self, arg: &LAngle)

Semantic action for non-terminal ‘LAngle’
source§

fn l_brace(&mut self, arg: &LBrace)

Semantic action for non-terminal ‘LBrace’
source§

fn l_bracket(&mut self, arg: &LBracket)

Semantic action for non-terminal ‘LBracket’
source§

fn l_paren(&mut self, arg: &LParen)

Semantic action for non-terminal ‘LParen’
source§

fn minus_colon(&mut self, arg: &MinusColon)

Semantic action for non-terminal ‘MinusColon’
source§

fn minus_g_t(&mut self, arg: &MinusGT)

Semantic action for non-terminal ‘MinusGT’
source§

fn plus_colon(&mut self, arg: &PlusColon)

Semantic action for non-terminal ‘PlusColon’
source§

fn r_angle(&mut self, arg: &RAngle)

Semantic action for non-terminal ‘RAngle’
source§

fn r_brace(&mut self, arg: &RBrace)

Semantic action for non-terminal ‘RBrace’
source§

fn r_bracket(&mut self, arg: &RBracket)

Semantic action for non-terminal ‘RBracket’
source§

fn r_paren(&mut self, arg: &RParen)

Semantic action for non-terminal ‘RParen’
source§

fn semicolon(&mut self, arg: &Semicolon)

Semantic action for non-terminal ‘Semicolon’
source§

fn star(&mut self, arg: &Star)

Semantic action for non-terminal ‘Star’
source§

fn always_comb(&mut self, arg: &AlwaysComb)

Semantic action for non-terminal ‘AlwaysComb’
source§

fn always_ff(&mut self, arg: &AlwaysFf)

Semantic action for non-terminal ‘AlwaysFf’
source§

fn as(&mut self, arg: &As)

Semantic action for non-terminal ‘As’
source§

fn assign(&mut self, arg: &Assign)

Semantic action for non-terminal ‘Assign’
source§

fn async_high(&mut self, arg: &AsyncHigh)

Semantic action for non-terminal ‘AsyncHigh’
source§

fn async_low(&mut self, arg: &AsyncLow)

Semantic action for non-terminal ‘AsyncLow’
source§

fn bit(&mut self, arg: &Bit)

Semantic action for non-terminal ‘Bit’
source§

fn case(&mut self, arg: &Case)

Semantic action for non-terminal ‘Case’
source§

fn defaul(&mut self, arg: &Defaul)

Semantic action for non-terminal ‘Defaul’
source§

fn else(&mut self, arg: &Else)

Semantic action for non-terminal ‘Else’
source§

fn enum(&mut self, arg: &Enum)

Semantic action for non-terminal ‘Enum’
source§

fn export(&mut self, arg: &Export)

Semantic action for non-terminal ‘Export’
source§

fn f32(&mut self, arg: &F32)

Semantic action for non-terminal ‘F32’
source§

fn f64(&mut self, arg: &F64)

Semantic action for non-terminal ‘F64’
source§

fn for(&mut self, arg: &For)

Semantic action for non-terminal ‘For’
source§

fn function(&mut self, arg: &Function)

Semantic action for non-terminal ‘Function’
source§

fn i32(&mut self, arg: &I32)

Semantic action for non-terminal ‘I32’
source§

fn i64(&mut self, arg: &I64)

Semantic action for non-terminal ‘I64’
source§

fn if(&mut self, arg: &If)

Semantic action for non-terminal ‘If’
source§

fn if_reset(&mut self, arg: &IfReset)

Semantic action for non-terminal ‘IfReset’
source§

fn import(&mut self, arg: &Import)

Semantic action for non-terminal ‘Import’
source§

fn in(&mut self, arg: &In)

Semantic action for non-terminal ‘In’
source§

fn inout(&mut self, arg: &Inout)

Semantic action for non-terminal ‘Inout’
source§

fn input(&mut self, arg: &Input)

Semantic action for non-terminal ‘Input’
source§

fn inst(&mut self, arg: &Inst)

Semantic action for non-terminal ‘Inst’
source§

fn interface(&mut self, arg: &Interface)

Semantic action for non-terminal ‘Interface’
source§

fn localparam(&mut self, arg: &Localparam)

Semantic action for non-terminal ‘Localparam’
source§

fn logic(&mut self, arg: &Logic)

Semantic action for non-terminal ‘Logic’
source§

fn modport(&mut self, arg: &Modport)

Semantic action for non-terminal ‘Modport’
source§

fn module(&mut self, arg: &Module)

Semantic action for non-terminal ‘Module’
source§

fn negedge(&mut self, arg: &Negedge)

Semantic action for non-terminal ‘Negedge’
source§

fn output(&mut self, arg: &Output)

Semantic action for non-terminal ‘Output’
source§

fn package(&mut self, arg: &Package)

Semantic action for non-terminal ‘Package’
source§

fn parameter(&mut self, arg: &Parameter)

Semantic action for non-terminal ‘Parameter’
source§

fn posedge(&mut self, arg: &Posedge)

Semantic action for non-terminal ‘Posedge’
source§

fn ref(&mut self, arg: &Ref)

Semantic action for non-terminal ‘Ref’
source§

fn repeat(&mut self, arg: &Repeat)

Semantic action for non-terminal ‘Repeat’
source§

fn return(&mut self, arg: &Return)

Semantic action for non-terminal ‘Return’
source§

fn signed(&mut self, arg: &Signed)

Semantic action for non-terminal ‘Signed’
source§

fn step(&mut self, arg: &Step)

Semantic action for non-terminal ‘Step’
source§

fn strin(&mut self, arg: &Strin)

Semantic action for non-terminal ‘Strin’
source§

fn struct(&mut self, arg: &Struct)

Semantic action for non-terminal ‘Struct’
source§

fn sync_high(&mut self, arg: &SyncHigh)

Semantic action for non-terminal ‘SyncHigh’
source§

fn sync_low(&mut self, arg: &SyncLow)

Semantic action for non-terminal ‘SyncLow’
source§

fn tri(&mut self, arg: &Tri)

Semantic action for non-terminal ‘Tri’
source§

fn type(&mut self, arg: &Type)

Semantic action for non-terminal ‘Type’
source§

fn u32(&mut self, arg: &U32)

Semantic action for non-terminal ‘U32’
source§

fn u64(&mut self, arg: &U64)

Semantic action for non-terminal ‘U64’
source§

fn var(&mut self, arg: &Var)

Semantic action for non-terminal ‘Var’
source§

fn identifier(&mut self, arg: &Identifier)

Semantic action for non-terminal ‘Identifier’
source§

fn number(&mut self, arg: &Number)

Semantic action for non-terminal ‘Number’
source§

fn integral_number(&mut self, arg: &IntegralNumber)

Semantic action for non-terminal ‘IntegralNumber’
source§

fn real_number(&mut self, arg: &RealNumber)

Semantic action for non-terminal ‘RealNumber’
source§

fn expression(&mut self, arg: &Expression)

Semantic action for non-terminal ‘Expression’
source§

fn expression01(&mut self, arg: &Expression01)

Semantic action for non-terminal ‘Expression01’
source§

fn expression02(&mut self, arg: &Expression02)

Semantic action for non-terminal ‘Expression02’
source§

fn expression03(&mut self, arg: &Expression03)

Semantic action for non-terminal ‘Expression03’
source§

fn expression04(&mut self, arg: &Expression04)

Semantic action for non-terminal ‘Expression04’
source§

fn expression05(&mut self, arg: &Expression05)

Semantic action for non-terminal ‘Expression05’
source§

fn expression06(&mut self, arg: &Expression06)

Semantic action for non-terminal ‘Expression06’
source§

fn expression07(&mut self, arg: &Expression07)

Semantic action for non-terminal ‘Expression07’
source§

fn expression08(&mut self, arg: &Expression08)

Semantic action for non-terminal ‘Expression08’
source§

fn expression09(&mut self, arg: &Expression09)

Semantic action for non-terminal ‘Expression09’
source§

fn expression10(&mut self, arg: &Expression10)

Semantic action for non-terminal ‘Expression10’
source§

fn expression11(&mut self, arg: &Expression11)

Semantic action for non-terminal ‘Expression11’
source§

fn expression12(&mut self, arg: &Expression12)

Semantic action for non-terminal ‘Expression12’
source§

fn factor(&mut self, arg: &Factor)

Semantic action for non-terminal ‘Factor’
source§

fn function_call(&mut self, arg: &FunctionCall)

Semantic action for non-terminal ‘FunctionCall’
source§

fn argument_list(&mut self, arg: &ArgumentList)

Semantic action for non-terminal ‘ArgumentList’
source§

fn argument_item(&mut self, arg: &ArgumentItem)

Semantic action for non-terminal ‘ArgumentItem’
source§

fn concatenation_list(&mut self, arg: &ConcatenationList)

Semantic action for non-terminal ‘ConcatenationList’
source§

fn concatenation_item(&mut self, arg: &ConcatenationItem)

Semantic action for non-terminal ‘ConcatenationItem’
source§

fn if_expression(&mut self, arg: &IfExpression)

Semantic action for non-terminal ‘IfExpression’
source§

fn case_expression(&mut self, arg: &CaseExpression)

Semantic action for non-terminal ‘CaseExpression’
source§

fn type_expression(&mut self, arg: &TypeExpression)

Semantic action for non-terminal ‘TypeExpression’
source§

fn range(&mut self, arg: &Range)

Semantic action for non-terminal ‘Range’
source§

fn range_operator(&mut self, arg: &RangeOperator)

Semantic action for non-terminal ‘RangeOperator’
source§

fn width(&mut self, arg: &Width)

Semantic action for non-terminal ‘Width’
source§

fn array(&mut self, arg: &Array)

Semantic action for non-terminal ‘Array’
source§

fn fixed_type(&mut self, arg: &FixedType)

Semantic action for non-terminal ‘FixedType’
source§

fn variable_type(&mut self, arg: &VariableType)

Semantic action for non-terminal ‘VariableType’
source§

fn type_modifier(&mut self, arg: &TypeModifier)

Semantic action for non-terminal ‘TypeModifier’
source§

fn scalar_type(&mut self, arg: &ScalarType)

Semantic action for non-terminal ‘ScalarType’
source§

fn array_type(&mut self, arg: &ArrayType)

Semantic action for non-terminal ‘ArrayType’
source§

fn statement(&mut self, arg: &Statement)

Semantic action for non-terminal ‘Statement’
source§

fn assignment_statement(&mut self, arg: &AssignmentStatement)

Semantic action for non-terminal ‘AssignmentStatement’
source§

fn if_statement(&mut self, arg: &IfStatement)

Semantic action for non-terminal ‘IfStatement’
source§

fn if_reset_statement(&mut self, arg: &IfResetStatement)

Semantic action for non-terminal ‘IfResetStatement’
source§

fn return_statement(&mut self, arg: &ReturnStatement)

Semantic action for non-terminal ‘ReturnStatement’
source§

fn for_statement(&mut self, arg: &ForStatement)

Semantic action for non-terminal ‘ForStatement’
source§

fn case_statement(&mut self, arg: &CaseStatement)

Semantic action for non-terminal ‘CaseStatement’
source§

fn case_item(&mut self, arg: &CaseItem)

Semantic action for non-terminal ‘CaseItem’
source§

fn attribute(&mut self, arg: &Attribute)

Semantic action for non-terminal ‘Attribute’
source§

fn attribute_list(&mut self, arg: &AttributeList)

Semantic action for non-terminal ‘AttributeList’
source§

fn attribute_item(&mut self, arg: &AttributeItem)

Semantic action for non-terminal ‘AttributeItem’
source§

fn var_declaration(&mut self, arg: &VarDeclaration)

Semantic action for non-terminal ‘VarDeclaration’
source§

fn localparam_declaration(&mut self, arg: &LocalparamDeclaration)

Semantic action for non-terminal ‘LocalparamDeclaration’
source§

fn always_ff_declaration(&mut self, arg: &AlwaysFfDeclaration)

Semantic action for non-terminal ‘AlwaysFfDeclaration’
source§

fn always_ff_clock(&mut self, arg: &AlwaysFfClock)

Semantic action for non-terminal ‘AlwaysFfClock’
source§

fn always_ff_reset(&mut self, arg: &AlwaysFfReset)

Semantic action for non-terminal ‘AlwaysFfReset’
source§

fn always_comb_declaration(&mut self, arg: &AlwaysCombDeclaration)

Semantic action for non-terminal ‘AlwaysCombDeclaration’
source§

fn assign_declaration(&mut self, arg: &AssignDeclaration)

Semantic action for non-terminal ‘AssignDeclaration’
source§

fn modport_declaration(&mut self, arg: &ModportDeclaration)

Semantic action for non-terminal ‘ModportDeclaration’
source§

fn modport_list(&mut self, arg: &ModportList)

Semantic action for non-terminal ‘ModportList’
source§

fn modport_group(&mut self, arg: &ModportGroup)

Semantic action for non-terminal ‘ModportGroup’
source§

fn modport_item(&mut self, arg: &ModportItem)

Semantic action for non-terminal ‘ModportItem’
source§

fn enum_declaration(&mut self, arg: &EnumDeclaration)

Semantic action for non-terminal ‘EnumDeclaration’
source§

fn enum_list(&mut self, arg: &EnumList)

Semantic action for non-terminal ‘EnumList’
source§

fn enum_group(&mut self, arg: &EnumGroup)

Semantic action for non-terminal ‘EnumGroup’
source§

fn enum_item(&mut self, arg: &EnumItem)

Semantic action for non-terminal ‘EnumItem’
source§

fn struct_declaration(&mut self, arg: &StructDeclaration)

Semantic action for non-terminal ‘StructDeclaration’
source§

fn struct_list(&mut self, arg: &StructList)

Semantic action for non-terminal ‘StructList’
source§

fn struct_group(&mut self, arg: &StructGroup)

Semantic action for non-terminal ‘StructGroup’
source§

fn struct_item(&mut self, arg: &StructItem)

Semantic action for non-terminal ‘StructItem’
source§

fn inst_declaration(&mut self, arg: &InstDeclaration)

Semantic action for non-terminal ‘InstDeclaration’
source§

fn inst_parameter(&mut self, arg: &InstParameter)

Semantic action for non-terminal ‘InstParameter’
source§

fn inst_parameter_list(&mut self, arg: &InstParameterList)

Semantic action for non-terminal ‘InstParameterList’
source§

fn inst_parameter_group(&mut self, arg: &InstParameterGroup)

Semantic action for non-terminal ‘InstParameterGroup’
source§

fn inst_parameter_item(&mut self, arg: &InstParameterItem)

Semantic action for non-terminal ‘InstParameterItem’
source§

fn inst_port_list(&mut self, arg: &InstPortList)

Semantic action for non-terminal ‘InstPortList’
source§

fn inst_port_group(&mut self, arg: &InstPortGroup)

Semantic action for non-terminal ‘InstPortGroup’
source§

fn inst_port_item(&mut self, arg: &InstPortItem)

Semantic action for non-terminal ‘InstPortItem’
source§

fn with_parameter(&mut self, arg: &WithParameter)

Semantic action for non-terminal ‘WithParameter’
source§

fn with_parameter_list(&mut self, arg: &WithParameterList)

Semantic action for non-terminal ‘WithParameterList’
source§

fn with_parameter_group(&mut self, arg: &WithParameterGroup)

Semantic action for non-terminal ‘WithParameterGroup’
source§

fn with_parameter_item(&mut self, arg: &WithParameterItem)

Semantic action for non-terminal ‘WithParameterItem’
source§

fn port_declaration(&mut self, arg: &PortDeclaration)

Semantic action for non-terminal ‘PortDeclaration’
source§

fn port_declaration_list(&mut self, arg: &PortDeclarationList)

Semantic action for non-terminal ‘PortDeclarationList’
source§

fn port_declaration_group(&mut self, arg: &PortDeclarationGroup)

Semantic action for non-terminal ‘PortDeclarationGroup’
source§

fn port_declaration_item(&mut self, arg: &PortDeclarationItem)

Semantic action for non-terminal ‘PortDeclarationItem’
source§

fn direction(&mut self, arg: &Direction)

Semantic action for non-terminal ‘Direction’
source§

fn function_declaration(&mut self, arg: &FunctionDeclaration)

Semantic action for non-terminal ‘FunctionDeclaration’
source§

fn function_item(&mut self, arg: &FunctionItem)

Semantic action for non-terminal ‘FunctionItem’
source§

fn import_declaration(&mut self, arg: &ImportDeclaration)

Semantic action for non-terminal ‘ImportDeclaration’
source§

fn export_declaration(&mut self, arg: &ExportDeclaration)

Semantic action for non-terminal ‘ExportDeclaration’
source§

fn module_declaration(&mut self, arg: &ModuleDeclaration)

Semantic action for non-terminal ‘ModuleDeclaration’
source§

fn module_if_declaration(&mut self, arg: &ModuleIfDeclaration)

Semantic action for non-terminal ‘ModuleIfDeclaration’
source§

fn module_for_declaration(&mut self, arg: &ModuleForDeclaration)

Semantic action for non-terminal ‘ModuleForDeclaration’
source§

fn module_named_block(&mut self, arg: &ModuleNamedBlock)

Semantic action for non-terminal ‘ModuleNamedBlock’
source§

fn module_optional_named_block(&mut self, arg: &ModuleOptionalNamedBlock)

Semantic action for non-terminal ‘ModuleOptionalNamedBlock’
source§

fn module_group(&mut self, arg: &ModuleGroup)

Semantic action for non-terminal ‘ModuleGroup’
source§

fn module_item(&mut self, arg: &ModuleItem)

Semantic action for non-terminal ‘ModuleItem’
source§

fn interface_declaration(&mut self, arg: &InterfaceDeclaration)

Semantic action for non-terminal ‘InterfaceDeclaration’
source§

fn interface_if_declaration(&mut self, arg: &InterfaceIfDeclaration)

Semantic action for non-terminal ‘InterfaceIfDeclaration’
source§

fn interface_for_declaration(&mut self, arg: &InterfaceForDeclaration)

Semantic action for non-terminal ‘InterfaceForDeclaration’
source§

fn interface_named_block(&mut self, arg: &InterfaceNamedBlock)

Semantic action for non-terminal ‘InterfaceNamedBlock’
source§

fn interface_optional_named_block(&mut self, arg: &InterfaceOptionalNamedBlock)

Semantic action for non-terminal ‘InterfaceOptionalNamedBlock’
source§

fn interface_group(&mut self, arg: &InterfaceGroup)

Semantic action for non-terminal ‘InterfaceGroup’
source§

fn interface_item(&mut self, arg: &InterfaceItem)

Semantic action for non-terminal ‘InterfaceItem’
source§

fn package_declaration(&mut self, arg: &PackageDeclaration)

Semantic action for non-terminal ‘PackageDeclaration’
source§

fn package_group(&mut self, arg: &PackageGroup)

Semantic action for non-terminal ‘PackageGroup’
source§

fn package_item(&mut self, arg: &PackageItem)

Semantic action for non-terminal ‘PackageItem’
source§

fn description_group(&mut self, arg: &DescriptionGroup)

Semantic action for non-terminal ‘DescriptionGroup’
source§

fn description_item(&mut self, arg: &DescriptionItem)

Semantic action for non-terminal ‘DescriptionItem’
source§

fn veryl(&mut self, arg: &Veryl)

Semantic action for non-terminal ‘Veryl’
source§

fn get_handlers(&mut self) -> Option<Vec<&mut dyn Handler>>

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.

§

impl<D> OwoColorize for D

§

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

Set the foreground color generically Read more
§

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

Set the background color generically. Read more
§

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

Change the foreground color to black
§

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

Change the background color to black
§

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

Change the foreground color to red
§

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

Change the background color to red
§

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

Change the foreground color to green
§

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

Change the background color to green
§

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

Change the foreground color to yellow
§

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

Change the background color to yellow
§

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

Change the foreground color to blue
§

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

Change the background color to blue
§

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

Change the foreground color to magenta
§

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

Change the background color to magenta
§

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

Change the foreground color to purple
§

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

Change the background color to purple
§

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

Change the foreground color to cyan
§

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

Change the background color to cyan
§

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

Change the foreground color to white
§

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

Change the background color to white
§

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

Change the foreground color to the terminal default
§

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

Change the background color to the terminal default
§

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

Change the foreground color to bright black
§

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

Change the background color to bright black
§

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

Change the foreground color to bright red
§

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

Change the background color to bright red
§

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

Change the foreground color to bright green
§

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

Change the background color to bright green
§

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

Change the foreground color to bright yellow
§

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

Change the background color to bright yellow
§

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

Change the foreground color to bright blue
§

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

Change the background color to bright blue
§

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

Change the foreground color to bright magenta
§

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

Change the background color to bright magenta
§

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

Change the foreground color to bright purple
§

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

Change the background color to bright purple
§

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

Change the foreground color to bright cyan
§

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

Change the background color to bright cyan
§

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

Change the foreground color to bright white
§

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

Change the background color to bright white
§

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

Make the text bold
§

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

Make the text dim
§

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

Make the text italicized
§

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

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

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

Swap the foreground and background colors
§

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

Hide the text
§

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

Cross out the text
§

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
§

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
§

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.
§

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.
§

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

Sets the foreground color to an RGB value.
§

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

Sets the background color to an RGB value.
§

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

Apply a runtime-determined style
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.