Skip to main content

IssueKind

Enum IssueKind 

Source
#[non_exhaustive]
pub enum IssueKind {
Show 99 variants NonStaticSelfCall { class: String, method: String, }, InvalidScope { in_class: bool, }, UndefinedVariable { name: String, }, UndefinedFunction { name: String, }, UndefinedMethod { class: String, method: String, }, UndefinedClass { name: String, }, UndefinedProperty { class: String, property: String, }, UndefinedConstant { name: String, }, PossiblyUndefinedVariable { name: String, }, UndefinedTrait { name: String, }, InvalidStringClass { actual: String, }, NullArgument { param: String, fn_name: String, }, NullPropertyFetch { property: String, }, NullMethodCall { method: String, }, NullArrayAccess, PossiblyNullArgument { param: String, fn_name: String, }, PossiblyInvalidArgument { param: String, fn_name: String, expected: String, actual: String, }, PossiblyNullPropertyFetch { property: String, }, PossiblyNullMethodCall { method: String, }, PossiblyNullArrayAccess, NullableReturnStatement { expected: String, actual: String, }, InvalidReturnType { expected: String, actual: String, }, InvalidArgument { param: String, fn_name: String, expected: String, actual: String, }, TooFewArguments { fn_name: String, expected: usize, actual: usize, }, TooManyArguments { fn_name: String, expected: usize, actual: usize, }, InvalidNamedArgument { fn_name: String, name: String, }, InvalidPassByReference { fn_name: String, param: String, }, InvalidPropertyFetch { ty: String, }, InvalidArrayAccess { ty: String, }, InvalidArrayAssignment { ty: String, }, InvalidPropertyAssignment { property: String, expected: String, actual: String, }, InvalidCast { from: String, to: String, }, InvalidStaticInvocation { class: String, method: String, }, InvalidOperand { op: String, left: String, right: String, }, PossiblyInvalidOperand { op: String, left: String, right: String, }, PossiblyNullOperand { op: String, ty: String, }, MismatchingDocblockReturnType { declared: String, inferred: String, }, MismatchingDocblockParamType { param: String, declared: String, inferred: String, }, TypeCheckMismatch { var: String, expected: String, actual: String, }, InvalidArrayOffset { expected: String, actual: String, }, NonExistentArrayOffset { key: String, }, PossiblyInvalidArrayOffset { expected: String, actual: String, }, RedundantCondition { ty: String, }, RedundantCast { from: String, to: String, }, UnnecessaryVarAnnotation { var: String, }, TypeDoesNotContainType { left: String, right: String, }, ParadoxicalCondition { value: String, }, UnusedVariable { name: String, }, UnusedParam { name: String, }, UnreachableCode, UnusedMethod { class: String, method: String, }, UnusedProperty { class: String, property: String, }, UnusedFunction { name: String, }, UnusedForeachValue { name: String, }, ReadonlyPropertyAssignment { class: String, property: String, }, UnimplementedAbstractMethod { class: String, method: String, }, UnimplementedInterfaceMethod { class: String, interface: String, method: String, }, MethodSignatureMismatch { class: String, method: String, detail: String, }, OverriddenMethodAccess { class: String, method: String, }, DirectConstructorCall { class: String, }, FinalClassExtended { parent: String, child: String, }, FinalMethodOverridden { class: String, method: String, parent: String, }, AbstractInstantiation { class: String, }, InterfaceInstantiation { class: String, }, InvalidOverride { class: String, method: String, detail: String, }, TaintedInput { sink: String, }, TaintedHtml, TaintedSql, TaintedShell, InvalidTemplateParam { name: String, expected_bound: String, actual: String, }, ShadowedTemplateParam { name: String, }, DeprecatedCall { name: String, message: Option<Arc<str>>, }, DeprecatedProperty { class: String, property: String, message: Option<Arc<str>>, }, DeprecatedConstant { class: String, constant: String, message: Option<Arc<str>>, }, DeprecatedInterface { name: String, message: Option<Arc<str>>, }, DeprecatedTrait { name: String, message: Option<Arc<str>>, }, DeprecatedMethodCall { class: String, method: String, message: Option<Arc<str>>, }, DeprecatedMethod { class: String, method: String, message: Option<Arc<str>>, }, DeprecatedClass { name: String, message: Option<Arc<str>>, }, InternalMethod { class: String, method: String, }, MissingReturnType { fn_name: String, }, MissingParamType { fn_name: String, param: String, }, InvalidThrow { ty: String, }, InvalidCatch { ty: String, }, MissingThrowsDocblock { class: String, }, ImplicitToStringCast { class: String, }, ImplicitFloatToIntCast { from: String, }, ParseError { message: String, }, InvalidDocblock { message: String, }, MixedArgument { param: String, fn_name: String, }, MixedAssignment { var: String, }, MixedMethodCall { method: String, }, MixedPropertyFetch { property: String, }, MixedClone, InvalidClone { ty: String, }, PossiblyInvalidClone { ty: String, }, InvalidToString { class: String, }, CircularInheritance { class: String, }, InvalidTraitUse { trait_name: String, reason: String, },
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

NonStaticSelfCall

Emitted by mir-analyzer/src/expr/variables.rs. Fixtures: tests/fixtures/by-kind/invalid_scope/. Emitted by mir-analyzer/src/call/static_call.rs. Fixtures: tests/fixtures/by-kind/invalid_scope/self_non_static_invocation.phpt.

Fields

§class: String
§method: String
§

InvalidScope

Fields

§in_class: bool

true when inside a class but in a static method; false when outside a class.

§

UndefinedVariable

Emitted by mir-analyzer/src/expr/variables.rs. Fixtures: tests/fixtures/by-kind/undefined_variable/.

Fields

§name: String
§

UndefinedFunction

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/undefined_function/.

Fields

§name: String
§

UndefinedMethod

Emitted by mir-analyzer/src/call/static_call.rs. Fixtures: tests/fixtures/by-kind/undefined_method/.

Fields

§class: String
§method: String
§

UndefinedClass

Emitted by mir-analyzer/src/batch.rs. Fixtures: tests/fixtures/by-kind/undefined_class/.

Fields

§name: String
§

UndefinedProperty

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/undefined_property/.

Fields

§class: String
§property: String
§

UndefinedConstant

Emitted by mir-analyzer/src/expr/variables.rs. Fixtures: tests/fixtures/by-kind/undefined_constant/.

Fields

§name: String
§

PossiblyUndefinedVariable

Emitted by mir-analyzer/src/expr/variables.rs. Fixtures: tests/fixtures/by-kind/possibly_undefined_variable/.

Fields

§name: String
§

UndefinedTrait

Emitted by mir-analyzer/src/body_analysis.rs. Fixtures: tests/fixtures/by-kind/undefined_trait/.

Fields

§name: String
§

InvalidStringClass

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/invalid_string_class/.

Fields

§actual: String
§

NullArgument

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/null_argument/.

Fields

§param: String
§fn_name: String
§

NullPropertyFetch

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/null_property_fetch/.

Fields

§property: String
§

NullMethodCall

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/null_method_call/.

Fields

§method: String
§

NullArrayAccess

Emitted by mir-analyzer/src/expr/arrays.rs. Fixtures: tests/fixtures/by-kind/null_array_access/.

§

PossiblyNullArgument

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/possibly_null_argument/.

Fields

§param: String
§fn_name: String
§

PossiblyInvalidArgument

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/possibly_invalid_argument/.

Fields

§param: String
§fn_name: String
§expected: String
§actual: String
§

PossiblyNullPropertyFetch

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/possibly_null_property_fetch/.

Fields

§property: String
§

PossiblyNullMethodCall

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/possibly_null_method_call/.

Fields

§method: String
§

PossiblyNullArrayAccess

Emitted by mir-analyzer/src/expr/arrays.rs. Fixtures: tests/fixtures/by-kind/possibly_null_array_access/.

§

NullableReturnStatement

Not yet emitted. Fixtures: tests/fixtures/by-kind/nullable_return_statement/ (planned).

Fields

§expected: String
§actual: String
§

InvalidReturnType

Emitted by mir-analyzer/src/stmt/flow.rs. Fixtures: tests/fixtures/by-kind/invalid_return_type/.

Fields

§expected: String
§actual: String
§

InvalidArgument

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/invalid_argument/.

Fields

§param: String
§fn_name: String
§expected: String
§actual: String
§

TooFewArguments

Emitted by mir-analyzer/src/call/callable.rs. Fixtures: tests/fixtures/by-kind/too_few_arguments/.

Fields

§fn_name: String
§expected: usize
§actual: usize
§

TooManyArguments

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/too_many_arguments/.

Fields

§fn_name: String
§expected: usize
§actual: usize
§

InvalidNamedArgument

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/invalid_named_argument/.

Fields

§fn_name: String
§name: String
§

InvalidPassByReference

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/invalid_pass_by_reference/.

Fields

§fn_name: String
§param: String
§

InvalidPropertyFetch

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/invalid_property_fetch/bad_fetch.phpt.

Fields

§

InvalidArrayAccess

Emitted by mir-analyzer/src/expr/arrays.rs. Fixtures: tests/fixtures/by-kind/invalid_array_access/.

Fields

§

InvalidArrayAssignment

Emitted by mir-analyzer/src/expr/assignment.rs. Fixtures: tests/fixtures/by-kind/invalid_array_assignment/.

Fields

§

InvalidPropertyAssignment

Emitted by mir-analyzer/src/expr/assignment.rs. Fixtures: tests/fixtures/by-kind/invalid_property_assignment/.

Fields

§property: String
§expected: String
§actual: String
§

InvalidCast

Emitted by mir-analyzer/src/expr/casts.rs. Fixtures: tests/fixtures/by-kind/invalid_cast/.

Fields

§from: String
§

InvalidStaticInvocation

Emitted by mir-analyzer/src/call/static_call.rs. Fixtures: tests/fixtures/by-kind/undefined_method/static_invocation*.phpt.

Fields

§class: String
§method: String
§

InvalidOperand

Emitted by mir-analyzer/src/expr/binary.rs and unary.rs for operations on non-numeric or non-bitwise-compatible operands. Fixtures: tests/fixtures/by-kind/invalid_operand/.

Fields

§left: String
§right: String
§

PossiblyInvalidOperand

Emitted when a union-typed operand has some non-numeric/non-stringifiable members. Fixtures: tests/fixtures/by-kind/invalid_operand/.

Fields

§left: String
§right: String
§

PossiblyNullOperand

Emitted when a divisor operand could be null (potential division by zero). Fixtures: tests/fixtures/by-kind/invalid_operand/.

Fields

§

MismatchingDocblockReturnType

Not yet emitted. Fixtures: tests/fixtures/by-kind/mismatching_docblock_return_type/ (planned).

Fields

§declared: String
§inferred: String
§

MismatchingDocblockParamType

Not yet emitted. Fixtures: tests/fixtures/by-kind/mismatching_docblock_param_type/ (planned).

Fields

§param: String
§declared: String
§inferred: String
§

TypeCheckMismatch

Emitted by mir-analyzer/src/stmt/mod.rs. Fixtures: tests/fixtures/by-kind/type_check_mismatch/.

Fields

§expected: String
§actual: String
§

InvalidArrayOffset

Not yet emitted. Fixtures: tests/fixtures/by-kind/invalid_array_offset/ (planned).

Fields

§expected: String
§actual: String
§

NonExistentArrayOffset

Not yet emitted. No fixtures yet.

Fields

§

PossiblyInvalidArrayOffset

Emitted by mir-analyzer/src/expr/assignment.rs. Fixtures: tests/fixtures/by-kind/possibly_invalid_array_offset/.

Fields

§expected: String
§actual: String
§

RedundantCondition

Emitted by mir-analyzer/src/stmt/control_flow.rs. Fixtures: tests/fixtures/by-kind/redundant_condition/.

Fields

§

RedundantCast

Emitted by mir-analyzer/src/expr/casts.rs. Fixtures: tests/fixtures/by-kind/redundant_cast/.

Fields

§from: String
§

UnnecessaryVarAnnotation

Not yet emitted. Fixtures: tests/fixtures/by-kind/unnecessary_var_annotation/ (planned).

Fields

§

TypeDoesNotContainType

Not yet emitted. Fixtures: tests/fixtures/by-kind/type_does_not_contain_type/ (planned).

Fields

§left: String
§right: String
§

ParadoxicalCondition

Emitted by mir-analyzer/src/stmt/control_flow.rs and mir-analyzer/src/expr/conditional.rs. Fixtures: tests/fixtures/by-kind/paradoxical_condition/.

Fields

§value: String
§

UnusedVariable

Emitted by mir-analyzer/src/diagnostics.rs. Fixtures: tests/fixtures/by-kind/unused_variable/.

Fields

§name: String
§

UnusedParam

Emitted by mir-analyzer/src/diagnostics.rs. Fixtures: tests/fixtures/by-kind/unused_param/.

Fields

§name: String
§

UnreachableCode

Emitted by mir-analyzer/src/stmt/mod.rs. Fixtures: tests/fixtures/by-kind/unreachable_code/.

§

UnusedMethod

Emitted by mir-analyzer/src/dead_code.rs. Fixtures: tests/fixtures/by-kind/unused_method/.

Fields

§class: String
§method: String
§

UnusedProperty

Emitted by mir-analyzer/src/dead_code.rs. Fixtures: tests/fixtures/by-kind/unused_property/.

Fields

§class: String
§property: String
§

UnusedFunction

Emitted by mir-analyzer/src/dead_code.rs. Fixtures: tests/fixtures/by-kind/unused_function/.

Fields

§name: String
§

UnusedForeachValue

Emitted by mir-analyzer/src/diagnostics.rs. Fixtures: tests/fixtures/by-kind/unused_foreach_value/.

Fields

§name: String
§

ReadonlyPropertyAssignment

Emitted by mir-analyzer/src/expr/assignment.rs. Fixtures: tests/fixtures/by-kind/readonly_property_assignment/.

Fields

§class: String
§property: String
§

UnimplementedAbstractMethod

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/unimplemented_abstract_method/.

Fields

§class: String
§method: String
§

UnimplementedInterfaceMethod

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/unimplemented_interface_method/.

Fields

§class: String
§interface: String
§method: String
§

MethodSignatureMismatch

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/method_signature_mismatch/.

Fields

§class: String
§method: String
§detail: String
§

OverriddenMethodAccess

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/overridden_method_access/.

Fields

§class: String
§method: String
§

DirectConstructorCall

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/undefined_method/direct_constructor_call*.phpt.

Fields

§class: String
§

FinalClassExtended

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/final_class_extended/.

Fields

§parent: String
§child: String
§

FinalMethodOverridden

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/final_method_overridden/.

Fields

§class: String
§method: String
§parent: String
§

AbstractInstantiation

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/abstract_instantiation/.

Fields

§class: String
§

InterfaceInstantiation

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/abstract_instantiation/interface_instantiation.phpt.

Fields

§class: String
§

InvalidOverride

Emitted by mir-analyzer/src/class.rs when #[Override] is declared but no overridable parent method exists. Fixtures: tests/fixtures/by-kind/method_signature_mismatch/.

Fields

§class: String
§method: String
§detail: String
§

TaintedInput

Not yet emitted (generic taint sink; specific sinks use TaintedHtml, TaintedSql, TaintedShell). No fixtures yet.

Fields

§sink: String
§

TaintedHtml

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/tainted_html/.

§

TaintedSql

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/tainted_sql/.

§

TaintedShell

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/tainted_shell/.

§

InvalidTemplateParam

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/invalid_template_param/.

Fields

§name: String
§expected_bound: String
§actual: String
§

ShadowedTemplateParam

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/shadowed_template_param/.

Fields

§name: String
§

DeprecatedCall

Emitted by mir-analyzer/src/call/function.rs. Fixtures: tests/fixtures/by-kind/deprecated_call/.

Fields

§name: String
§message: Option<Arc<str>>
§

DeprecatedProperty

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/undefined_property/deprecated_property_*.phpt.

Fields

§class: String
§property: String
§message: Option<Arc<str>>
§

DeprecatedConstant

Emitted by mir-analyzer/src/expr/objects.rs. Fixtures: tests/fixtures/by-kind/deprecated_call/deprecated_class_const_fetch*.phpt.

Fields

§class: String
§constant: String
§message: Option<Arc<str>>
§

DeprecatedInterface

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/deprecated_class/deprecated_interface*.phpt.

Fields

§name: String
§message: Option<Arc<str>>
§

DeprecatedTrait

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/deprecated_trait/.

Fields

§name: String
§message: Option<Arc<str>>
§

DeprecatedMethodCall

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/deprecated_method_call/.

Fields

§class: String
§method: String
§message: Option<Arc<str>>
§

DeprecatedMethod

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/deprecated_method/.

Fields

§class: String
§method: String
§message: Option<Arc<str>>
§

DeprecatedClass

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/deprecated_class/.

Fields

§name: String
§message: Option<Arc<str>>
§

InternalMethod

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/internal_method/.

Fields

§class: String
§method: String
§

MissingReturnType

Not yet emitted. Fixtures: tests/fixtures/by-kind/missing_return_type/ (planned).

Fields

§fn_name: String
§

MissingParamType

Not yet emitted. Fixtures: tests/fixtures/by-kind/missing_param_type/ (planned).

Fields

§fn_name: String
§param: String
§

InvalidThrow

Emitted by mir-analyzer/src/stmt/flow.rs. Fixtures: tests/fixtures/by-kind/invalid_throw/.

Fields

§

InvalidCatch

Emitted by mir-analyzer/src/stmt/control_flow.rs. Fixtures: tests/fixtures/by-kind/invalid_catch/.

Fields

§

MissingThrowsDocblock

Emitted by mir-analyzer/src/stmt/flow.rs. Fixtures: tests/fixtures/by-kind/missing_throws_docblock/.

Fields

§class: String
§

ImplicitToStringCast

Emitted by mir-analyzer/src/stmt/expressions.rs. Fixtures: tests/fixtures/by-kind/implicit_to_string_cast/.

Fields

§class: String
§

ImplicitFloatToIntCast

Emitted by mir-analyzer/src/call/args.rs. Fixtures: tests/fixtures/by-kind/implicit_float_to_int_cast/.

Fields

§from: String
§

ParseError

Emitted by mir-analyzer/src/parser/mod.rs. Fixtures: tests/fixtures/by-kind/parse_error/.

Fields

§message: String
§

InvalidDocblock

Emitted by mir-analyzer/src/collector/annotation.rs. Fixtures: tests/fixtures/by-kind/invalid_docblock/.

Fields

§message: String
§

MixedArgument

Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_argument/ (planned).

Fields

§param: String
§fn_name: String
§

MixedAssignment

Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_assignment/ (planned).

Fields

§

MixedMethodCall

Emitted by mir-analyzer/src/call/method.rs. Fixtures: tests/fixtures/by-kind/mixed_method_call/.

Fields

§method: String
§

MixedPropertyFetch

Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_property_fetch/ (planned).

Fields

§property: String
§

MixedClone

Emitted by mir-analyzer/src/expr/mod.rs. Fixtures: tests/fixtures/by-kind/mixed_clone/.

§

InvalidClone

clone of a value that is definitely not an object (e.g. int, string). Emitted by mir-analyzer/src/expr/mod.rs. Fixtures: tests/fixtures/by-kind/mixed_clone/.

Fields

§

PossiblyInvalidClone

clone of a union where some members are not objects (e.g. int|Exception). Emitted by mir-analyzer/src/expr/mod.rs. Fixtures: tests/fixtures/by-kind/mixed_clone/.

Fields

§

InvalidToString

A __toString method that does not return a string. Emitted by mir-analyzer/src/body_analysis.rs. Fixtures: tests/fixtures/by-kind/implicit_to_string_cast/.

Fields

§class: String
§

CircularInheritance

Emitted by mir-analyzer/src/class.rs. Fixtures: tests/fixtures/by-kind/circular_inheritance/.

Fields

§class: String
§

InvalidTraitUse

Emitted by mir-analyzer/src/body_analysis.rs. Fixtures: tests/fixtures/by-kind/invalid_trait_use/.

Fields

§trait_name: String
§reason: String

Implementations§

Source§

impl IssueKind

Source

pub fn default_severity(&self) -> Severity

Default severity for this issue kind.

Source

pub fn code(&self) -> &'static str

Stable error code (e.g. "MIR0005").

Codes are assigned in bands by category and are part of the public API: once a code ships, it must never be reused for a different issue kind. New variants take the next free slot in their band; obsolete variants retire their code (the slot stays burnt). Bands have headroom for growth.

Bands:

RangeCategory
0001 – 0099Undefined symbols
0100 – 0199Nullability
0200 – 0299Type mismatches
0300 – 0399Array / offset
0400 – 0499Redundancy
0500 – 0599Dead code
0600 – 0699Readonly
0700 – 0799Inheritance
0800 – 0899Security (taint)
0900 – 0999Generics
1000 – 1099Deprecation / internal
1100 – 1199Missing types / docblocks
1200 – 1299Mixed
1300 – 1399Trait
1400 – 1499Parse
1500 – 1599Other
Source

pub fn name(&self) -> &'static str

Identifier name used in config and @psalm-suppress / @suppress annotations.

Source

pub fn message(&self) -> String

Human-readable message for this issue.

Trait Implementations§

Source§

impl Clone for IssueKind

Source§

fn clone(&self) -> IssueKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IssueKind

Source§

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

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

impl<'de> Deserialize<'de> for IssueKind

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<IssueKind, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for IssueKind

Source§

impl PartialEq for IssueKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Serialize for IssueKind

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for IssueKind

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Lookup<T> for T

Source§

fn into_owned(self) -> T

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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, 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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more