Struct veryl_parser::veryl_token::Token

source ·
pub struct Token {
    pub id: TokenId,
    pub text: StrId,
    pub line: u32,
    pub column: u32,
    pub length: u32,
    pub pos: u32,
    pub source: TokenSource,
}

Fields§

§id: TokenId§text: StrId§line: u32§column: u32§length: u32§pos: u32§source: TokenSource

Implementations§

source§

impl Token

source

pub fn new( text: &str, line: u32, column: u32, length: u32, pos: u32, source: TokenSource, ) -> Self

Trait Implementations§

source§

impl Clone for Token

source§

fn clone(&self) -> Token

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 Token

source§

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

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

impl Display for Token

source§

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

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

impl From<&Token> for SourceSpan

source§

fn from(x: &Token) -> Self

Converts to this type from the input type.
source§

impl From<&Token> for TokenRange

source§

fn from(value: &Token) -> Self

Converts to this type from the input type.
source§

impl From<Token> for SourceSpan

source§

fn from(x: Token) -> Self

Converts to this type from the input type.
source§

impl From<Token> for TokenRange

source§

fn from(value: Token) -> Self

Converts to this type from the input type.
source§

impl Hash for Token

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Token

source§

fn eq(&self, other: &Token) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<&AllBitTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&AlwaysCombTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&AlwaysFfTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&AsTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&AssignTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&AssignmentOperatorTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&BackQuoteTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&BaseLessTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&BasedTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&BitTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&BreakTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&CaseTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ClockNegedgeTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ClockPosedgeTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ClockTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ColonColonLAngleTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ColonColonTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ColonTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&CommaTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ConstTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&DefaultTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&DollarIdentifierTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&DotDotEquTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&DotDotTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&DotTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ElseTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&EmbedTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&EnumTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&EquTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ExponentTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ExportTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&F32Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&F64Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&FinalTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&FixedPointTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ForTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&FunctionTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&HashTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&I32Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&I64Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&IdentifierTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&IfResetTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&IfTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ImportTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&IncludeTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InitialTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InoutTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InputTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InsideTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InstTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&InterfaceTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LAngleTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LBraceTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LBracketTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LParenTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LetTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LogicTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&LsbTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&MinusColonTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&MinusGTTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ModportTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ModuleTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&MsbTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator01Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator02Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator03Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator04Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator05Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator06Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator07Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator08Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator09Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator10Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&Operator11Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&OutputTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&OutsideTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&PackageTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ParamTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&PlusColonTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ProtoTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&PubTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&QuoteLBraceTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RAngleTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RBraceTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RBracketTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RParenTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RefTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&RepeatTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ResetAsyncHighTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ResetAsyncLowTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ResetSyncHighTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ResetSyncLowTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ResetTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&ReturnTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&SemicolonTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&SignedTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&StarTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&StepTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&StringLiteralTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&StringTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&StructTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&SwitchTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl<'t> TryFrom<&Token<'t>> for Token

source§

type Error = Error

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

fn try_from(x: &Token<'t>) -> Result<Self, Error>

Performs the conversion.
source§

impl TryFrom<&TriTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&TypeTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&U32Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&U64Term> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&UnaryOperatorTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&UnionTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&UnsafeTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl TryFrom<&VarTerm> for Token

source§

type Error = Error

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

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

Performs the conversion.
source§

impl Copy for Token

source§

impl Eq for Token

source§

impl StructuralPartialEq for Token

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnwindSafe for Token

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 T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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§

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