pub enum AnalyzerError {
Show 95 variants
AmbiguousElsif {
cause: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
AnonymousIdentifierUsage {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
CallNonFunction {
identifier: String,
kind: String,
input: MultiSources,
error_location: SourceSpan,
inst_context: Vec<SourceSpan>,
token_source: TokenSource,
},
CyclicTypeDependency {
start: String,
end: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
DuplicatedIdentifier {
identifier: String,
kind: DuplicatedIdentifierKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
ExceedLimit {
kind: ExceedLimitKind,
value: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
FixedTypeWithSignedModifier {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
IncludeFailure {
name: String,
cause: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
IncompatProto {
identifier: String,
proto: String,
cause: IncompatProtoKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InfiniteRecursion {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidAssignment {
identifier: String,
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidCast {
from: String,
to: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidClock {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidClockDomain {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidConnectOperand {
identifier: String,
reason: InvalidConnectOperandKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidDirection {
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidEmbed {
way: String,
lang: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidEmbedIdentifier {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidEnumVariant {
identifier: String,
encoding: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidFactor {
identifier: Option<String>,
kind: String,
input: MultiSources,
error_location: SourceSpan,
inst_context: Vec<SourceSpan>,
token_source: TokenSource,
},
InvalidIdentifier {
identifier: String,
rule: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidImport {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidLogicalOperand {
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnsignedArithShift {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidLsb {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidModifier {
kind: String,
reason: InvalidModifierKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidModportItem {
kind: InvalidModportItemKind,
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidMsb {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidNumberCharacter {
cause: char,
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidOperand {
kind: String,
op: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidPortDefaultValue {
kind: InvalidPortDefaultValueKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidReset {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidSelect {
kind: InvalidSelectKind,
input: MultiSources,
error_location: SourceSpan,
inst_context: Vec<SourceSpan>,
token_source: TokenSource,
},
InvalidStatement {
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidTest {
cause: InvalidTestKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidTbUsage {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingTbPort {
name: String,
port: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownTbPort {
name: String,
port: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidTypeDeclaration {
kind: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvisibleIndentifier {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
LastItemWithDefine {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MemberAccessOnArray {
name: String,
member: String,
array_dims: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchAssignment {
src: String,
dst: String,
input: MultiSources,
error_location: SourceSpan,
inst_context: Vec<SourceSpan>,
token_source: TokenSource,
},
NonPositiveValue {
value: String,
typ: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchAttributeArgs {
name: String,
expected: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchClockDomain {
clock_domain: String,
other_domain: String,
input: MultiSources,
error_location: SourceSpan,
other_location: SourceSpan,
token_source: TokenSource,
},
MismatchFunctionArg {
name: String,
src: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchFunctionArity {
name: String,
arity: usize,
args: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchGenericsArity {
name: String,
arity: usize,
args: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MismatchType {
kind: MismatchTypeKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingClockDomain {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingClockSignal {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingDefaultArgument {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
GenericInferenceFailed {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
TypeInferenceNotSupported {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
TypeInferenceConflict {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingIfReset {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingPort {
name: String,
port: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingResetSignal {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MissingResetStatement {
name: String,
input: MultiSources,
error_locations: Vec<SourceSpan>,
token_source: TokenSource,
},
MissingTri {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MixedFunctionArgument {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MixedStructUnionMember {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
MultipleAssignment {
identifier: String,
input: MultiSources,
error_locations: Vec<SourceSpan>,
token_source: TokenSource,
},
MultipleDefault {
kind: MultipleDefaultKind,
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
PrivateMember {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
PrivateNamespace {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
ReferringBeforeDefinition {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
ReservedIdentifier {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
SvKeywordUsage {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
SvWithImplicitReset {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
TooLargeEnumVariant {
identifier: String,
value: isize,
width: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
TooLargeNumber {
width: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
TooMuchEnumVariant {
identifier: String,
number: usize,
width: usize,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnassignVariable {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnassignableOutput {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UncoveredBranch {
identifier: String,
input: MultiSources,
error_locations: Vec<SourceSpan>,
token_source: TokenSource,
},
UndefinedIdentifier {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnenclosedInnerIfExpression {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnevaluableValue {
kind: UnevaluableValueKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnexpandableModport {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownAttribute {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownEmbedLang {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownEmbedWay {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownIncludeWay {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownMember {
name: String,
member: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownMsb {
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownParam {
name: String,
param: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownPort {
name: String,
port: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnknownUnsafe {
name: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnresolvableGenericExpression {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
definition_location: SourceSpan,
token_source: TokenSource,
},
UnusedReturn {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
UnusedVariable {
identifier: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
WrongSeparator {
separator: String,
valid_separator: String,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
InvalidWavedrom {
cause: InvalidWavedromKind,
input: MultiSources,
error_location: SourceSpan,
token_source: TokenSource,
},
}Variants§
AmbiguousElsif
AnonymousIdentifierUsage
CallNonFunction
Fields
§
input: MultiSources§
error_location: SourceSpan§
inst_context: Vec<SourceSpan>§
token_source: TokenSourceCyclicTypeDependency
DuplicatedIdentifier
ExceedLimit
Fields
§
kind: ExceedLimitKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceFixedTypeWithSignedModifier
IncludeFailure
IncompatProto
Fields
§
cause: IncompatProtoKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceInfiniteRecursion
InvalidAssignment
InvalidCast
InvalidClock
InvalidClockDomain
InvalidConnectOperand
Fields
§
reason: InvalidConnectOperandKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceInvalidDirection
InvalidEmbed
InvalidEmbedIdentifier
InvalidEnumVariant
InvalidFactor
Fields
§
input: MultiSources§
error_location: SourceSpan§
inst_context: Vec<SourceSpan>§
token_source: TokenSourceInvalidIdentifier
InvalidImport
InvalidLogicalOperand
UnsignedArithShift
InvalidLsb
InvalidModifier
Fields
§
reason: InvalidModifierKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceInvalidModportItem
Fields
§
kind: InvalidModportItemKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceInvalidMsb
InvalidNumberCharacter
InvalidOperand
InvalidPortDefaultValue
InvalidReset
InvalidSelect
Fields
§
kind: InvalidSelectKind§
input: MultiSources§
error_location: SourceSpan§
inst_context: Vec<SourceSpan>§
token_source: TokenSourceInvalidStatement
InvalidTest
Fields
§
cause: InvalidTestKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceInvalidTbUsage
MissingTbPort
UnknownTbPort
InvalidTypeDeclaration
InvisibleIndentifier
LastItemWithDefine
MemberAccessOnArray
MismatchAssignment
Fields
§
input: MultiSources§
error_location: SourceSpan§
inst_context: Vec<SourceSpan>§
token_source: TokenSourceNonPositiveValue
MismatchAttributeArgs
MismatchClockDomain
Fields
§
input: MultiSources§
error_location: SourceSpan§
other_location: SourceSpan§
token_source: TokenSourceMismatchFunctionArg
MismatchFunctionArity
MismatchGenericsArity
MismatchType
Fields
§
kind: MismatchTypeKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceMissingClockDomain
MissingClockSignal
MissingDefaultArgument
GenericInferenceFailed
TypeInferenceNotSupported
TypeInferenceConflict
MissingIfReset
MissingPort
MissingResetSignal
MissingResetStatement
MissingTri
MixedFunctionArgument
MixedStructUnionMember
MultipleAssignment
MultipleDefault
Fields
§
kind: MultipleDefaultKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourcePrivateMember
PrivateNamespace
ReferringBeforeDefinition
ReservedIdentifier
SvKeywordUsage
SvWithImplicitReset
TooLargeEnumVariant
TooLargeNumber
TooMuchEnumVariant
UnassignVariable
UnassignableOutput
UncoveredBranch
UndefinedIdentifier
UnenclosedInnerIfExpression
UnevaluableValue
Fields
§
kind: UnevaluableValueKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceUnexpandableModport
UnknownAttribute
UnknownEmbedLang
UnknownEmbedWay
UnknownIncludeWay
UnknownMember
UnknownMsb
UnknownParam
UnknownPort
UnknownUnsafe
UnresolvableGenericExpression
Fields
§
input: MultiSources§
error_location: SourceSpan§
definition_location: SourceSpan§
token_source: TokenSourceUnusedReturn
UnusedVariable
WrongSeparator
InvalidWavedrom
Fields
§
cause: InvalidWavedromKind§
input: MultiSources§
error_location: SourceSpan§
token_source: TokenSourceImplementations§
Source§impl AnalyzerError
impl AnalyzerError
pub fn is_error(&self) -> bool
pub fn token_source(&self) -> TokenSource
pub fn ambiguous_elsif(cause: &str, token: &TokenRange) -> Self
pub fn anonymous_identifier_usage(token: &TokenRange) -> Self
pub fn call_non_function( identifier: &str, kind: &str, token: &TokenRange, ) -> Self
pub fn cyclic_type_dependency( start: &str, end: &str, token: &TokenRange, ) -> Self
pub fn duplicated_identifier( identifier: &str, kind: DuplicatedIdentifierKind, token: &TokenRange, ) -> Self
pub fn exceed_limit( kind: ExceedLimitKind, value: usize, token: &TokenRange, ) -> Self
pub fn fixed_type_with_signed_modifier(token: &TokenRange) -> Self
pub fn include_failure(name: &str, cause: &str, token: &TokenRange) -> Self
pub fn incompat_proto( identifier: &str, proto: &str, cause: IncompatProtoKind, token: &TokenRange, ) -> Self
pub fn infinite_recursion(token: &TokenRange) -> Self
pub fn invalid_assignment( identifier: &str, kind: &str, token: &TokenRange, ) -> Self
pub fn invalid_cast(from: &str, to: &str, token: &TokenRange) -> Self
pub fn invalid_clock(identifier: &str, token: &TokenRange) -> Self
pub fn invalid_clock_domain(token: &TokenRange) -> Self
pub fn invalid_connect_operand( identifier: &str, reason: InvalidConnectOperandKind, token: &TokenRange, ) -> Self
pub fn invalid_direction(kind: &str, token: &TokenRange) -> Self
pub fn invalid_embed(way: &str, lang: &str, token: &TokenRange) -> Self
pub fn invalid_embed_identifier(token: &TokenRange) -> Self
pub fn invalid_enum_variant( identifier: &str, encoding: &str, token: &TokenRange, ) -> Self
pub fn invalid_factor( identifier: Option<&str>, kind: &str, token: &TokenRange, inst_context: &[TokenRange], ) -> Self
pub fn invalid_identifier( identifier: &str, rule: &str, token: &TokenRange, ) -> Self
pub fn invalid_import(token: &TokenRange) -> Self
pub fn invalid_logical_operand(op: bool, token: &TokenRange) -> Self
pub fn unsigned_arith_shift(token: &TokenRange) -> Self
pub fn invalid_lsb(token: &TokenRange) -> Self
pub fn invalid_modifier( kind: &str, reason: InvalidModifierKind, token: &TokenRange, ) -> Self
pub fn invalid_modport_item( kind: InvalidModportItemKind, identifier: &str, token: &TokenRange, ) -> Self
pub fn invalid_msb(token: &TokenRange) -> Self
pub fn invalid_number_character( cause: char, kind: &str, token: &TokenRange, ) -> Self
pub fn invalid_operand(kind: &str, op: &str, token: &TokenRange) -> Self
pub fn invalid_port_default_value( kind: InvalidPortDefaultValueKind, token: &TokenRange, ) -> Self
pub fn invalid_reset(identifier: &str, token: &TokenRange) -> Self
pub fn invalid_select( kind: &InvalidSelectKind, token: &TokenRange, inst_context: &[TokenRange], ) -> Self
pub fn invalid_statement(kind: &str, token: &TokenRange) -> Self
pub fn invalid_test(cause: InvalidTestKind, token: &TokenRange) -> Self
pub fn invalid_tb_usage(token: &TokenRange) -> Self
pub fn missing_tb_port(name: &str, port: &str, token: &TokenRange) -> Self
pub fn unknown_tb_port(name: &str, port: &str, token: &TokenRange) -> Self
pub fn invalid_type_declaration(kind: &str, token: &TokenRange) -> Self
pub fn invisible_identifier(identifier: &str, token: &TokenRange) -> Self
pub fn last_item_with_define(token: &TokenRange) -> Self
pub fn member_access_on_array( name: &str, member: &str, array_dims: usize, token: &TokenRange, ) -> Self
pub fn mismatch_assignment( src: &str, dst: &str, token: &TokenRange, inst_context: &[TokenRange], ) -> Self
pub fn non_positive_value(value: &str, typ: &str, token: &TokenRange) -> Self
pub fn mismatch_attribute_args( name: &str, expected: String, token: &TokenRange, ) -> Self
pub fn mismatch_clock_domain( clock_domain: &str, other_domain: &str, token: &TokenRange, other_token: &TokenRange, ) -> Self
pub fn mismatch_function_arg(name: &str, src: &str, token: &TokenRange) -> Self
pub fn mismatch_function_arity( name: &str, arity: usize, args: usize, token: &TokenRange, ) -> Self
pub fn mismatch_generics_arity( name: &str, arity: usize, args: usize, token: &TokenRange, ) -> Self
pub fn mismatch_type(kind: MismatchTypeKind, token: &TokenRange) -> Self
pub fn missing_clock_domain(token: &TokenRange) -> Self
pub fn missing_clock_signal(token: &TokenRange) -> Self
pub fn missing_default_argument(identifier: &str, token: &TokenRange) -> Self
pub fn generic_inference_failed(identifier: &str, token: &TokenRange) -> Self
pub fn type_inference_conflict(identifier: &str, token: &TokenRange) -> Self
pub fn type_inference_not_supported(token: &TokenRange) -> Self
pub fn missing_if_reset(token: &TokenRange) -> Self
pub fn missing_port(name: &str, port: &str, token: &TokenRange) -> Self
pub fn missing_reset_signal(token: &TokenRange) -> Self
pub fn missing_reset_statement( name: &str, token: &TokenRange, tokens: &[TokenRange], ) -> Self
pub fn missing_tri(token: &TokenRange) -> Self
pub fn mixed_function_argument(token: &TokenRange) -> Self
pub fn mixed_struct_union_member(token: &TokenRange) -> Self
pub fn multiple_assignment( identifier: &str, token: &TokenRange, assigned: &[TokenRange], ) -> Self
pub fn multiple_default( kind: MultipleDefaultKind, identifier: &str, token: &TokenRange, ) -> Self
pub fn private_member(name: &str, token: &TokenRange) -> Self
pub fn private_namespace(name: &str, token: &TokenRange) -> Self
pub fn referring_before_definition(identifier: &str, token: &TokenRange) -> Self
pub fn reserved_identifier(identifier: &str, token: &TokenRange) -> Self
pub fn sv_keyword_usage(identifier: &str, token: &TokenRange) -> Self
pub fn sv_with_implicit_reset(token: &TokenRange) -> Self
pub fn too_large_enum_variant( identifier: &str, value: isize, width: usize, token: &TokenRange, ) -> Self
pub fn too_large_number(width: usize, token: &TokenRange) -> Self
pub fn too_much_enum_variant( identifier: &str, number: usize, width: usize, token: &TokenRange, ) -> Self
pub fn unassign_variable(identifier: &str, token: &TokenRange) -> Self
pub fn unassignable_output(token: &TokenRange) -> Self
pub fn uncovered_branch( identifier: &str, token: &TokenRange, covered: &[TokenRange], ) -> Self
pub fn undefined_identifier(identifier: &str, token: &TokenRange) -> Self
pub fn unenclosed_inner_if_expression(token: &TokenRange) -> Self
pub fn unevaluable_value(kind: UnevaluableValueKind, token: &TokenRange) -> Self
pub fn unexpandable_modport(identifier: &str, token: &TokenRange) -> Self
pub fn unknown_attribute(name: &str, token: &TokenRange) -> Self
pub fn unknown_embed_lang(name: &str, token: &TokenRange) -> Self
pub fn unknown_embed_way(name: &str, token: &TokenRange) -> Self
pub fn unknown_include_way(name: &str, token: &TokenRange) -> Self
pub fn unknown_member(name: &str, member: &str, token: &TokenRange) -> Self
pub fn unknown_msb(token: &TokenRange) -> Self
pub fn unknown_param(name: &str, param: &str, token: &TokenRange) -> Self
pub fn unknown_port(name: &str, port: &str, token: &TokenRange) -> Self
pub fn unknown_unsafe(name: &str, token: &TokenRange) -> Self
pub fn unresolvable_generic_expression( identifier: &str, token: &TokenRange, definition_token: &TokenRange, ) -> Self
pub fn unused_return(identifier: &str, token: &TokenRange) -> Self
pub fn unused_variable(identifier: &str, token: &TokenRange) -> Self
pub fn invalid_wavedrom(cause: InvalidWavedromKind, token: &TokenRange) -> Self
pub fn wrong_seperator(separator: &str, token: &TokenRange) -> Self
Trait Implementations§
Source§impl Debug for AnalyzerError
impl Debug for AnalyzerError
Source§impl Diagnostic for AnalyzerError
impl Diagnostic for AnalyzerError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn help(&self) -> Option<Box<dyn Display + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
Additional help text related to this
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codeSource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
URL to visit for a more detailed explanation/help about this
Diagnostic.Additional related
Diagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
Source§impl Display for AnalyzerError
impl Display for AnalyzerError
Source§impl Error for AnalyzerError
impl Error for AnalyzerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DagError> for AnalyzerError
impl From<DagError> for AnalyzerError
Source§impl PartialEq for AnalyzerError
impl PartialEq for AnalyzerError
impl Eq for AnalyzerError
impl StructuralPartialEq for AnalyzerError
Auto Trait Implementations§
impl Freeze for AnalyzerError
impl RefUnwindSafe for AnalyzerError
impl Send for AnalyzerError
impl Sync for AnalyzerError
impl Unpin for AnalyzerError
impl UnsafeUnpin for AnalyzerError
impl UnwindSafe for AnalyzerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
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,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Change the foreground color to black
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Change the background color to black
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Change the foreground color to red
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Change the background color to red
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Change the foreground color to green
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Change the background color to green
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Change the background color to yellow
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Change the foreground color to blue
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Change the background color to blue
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to purple
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Change the background color to cyan
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Change the foreground color to white
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Change the background color to white
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Make the text bold
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Make the text dim
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Make the text italicized
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Make the text underlined
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Make the text blink
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
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 moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
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 moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
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>
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>
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>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.