#[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
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.
InvalidScope
UndefinedVariable
Emitted by mir-analyzer/src/expr/variables.rs.
Fixtures: tests/fixtures/by-kind/undefined_variable/.
UndefinedFunction
Emitted by mir-analyzer/src/call/function.rs.
Fixtures: tests/fixtures/by-kind/undefined_function/.
UndefinedMethod
Emitted by mir-analyzer/src/call/static_call.rs.
Fixtures: tests/fixtures/by-kind/undefined_method/.
UndefinedClass
Emitted by mir-analyzer/src/batch.rs.
Fixtures: tests/fixtures/by-kind/undefined_class/.
UndefinedProperty
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/undefined_property/.
UndefinedConstant
Emitted by mir-analyzer/src/expr/variables.rs.
Fixtures: tests/fixtures/by-kind/undefined_constant/.
PossiblyUndefinedVariable
Emitted by mir-analyzer/src/expr/variables.rs.
Fixtures: tests/fixtures/by-kind/possibly_undefined_variable/.
UndefinedTrait
Emitted by mir-analyzer/src/body_analysis.rs.
Fixtures: tests/fixtures/by-kind/undefined_trait/.
InvalidStringClass
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/invalid_string_class/.
NullArgument
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/null_argument/.
NullPropertyFetch
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/null_property_fetch/.
NullMethodCall
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/null_method_call/.
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/.
PossiblyInvalidArgument
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/possibly_invalid_argument/.
PossiblyNullPropertyFetch
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/possibly_null_property_fetch/.
PossiblyNullMethodCall
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/possibly_null_method_call/.
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).
InvalidReturnType
Emitted by mir-analyzer/src/stmt/flow.rs.
Fixtures: tests/fixtures/by-kind/invalid_return_type/.
InvalidArgument
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/invalid_argument/.
TooFewArguments
Emitted by mir-analyzer/src/call/callable.rs.
Fixtures: tests/fixtures/by-kind/too_few_arguments/.
TooManyArguments
Emitted by mir-analyzer/src/call/function.rs.
Fixtures: tests/fixtures/by-kind/too_many_arguments/.
InvalidNamedArgument
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/invalid_named_argument/.
InvalidPassByReference
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/invalid_pass_by_reference/.
InvalidPropertyFetch
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/invalid_property_fetch/bad_fetch.phpt.
InvalidArrayAccess
Emitted by mir-analyzer/src/expr/arrays.rs.
Fixtures: tests/fixtures/by-kind/invalid_array_access/.
InvalidArrayAssignment
Emitted by mir-analyzer/src/expr/assignment.rs.
Fixtures: tests/fixtures/by-kind/invalid_array_assignment/.
InvalidPropertyAssignment
Emitted by mir-analyzer/src/expr/assignment.rs.
Fixtures: tests/fixtures/by-kind/invalid_property_assignment/.
InvalidCast
Emitted by mir-analyzer/src/expr/casts.rs.
Fixtures: tests/fixtures/by-kind/invalid_cast/.
InvalidStaticInvocation
Emitted by mir-analyzer/src/call/static_call.rs.
Fixtures: tests/fixtures/by-kind/undefined_method/static_invocation*.phpt.
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/.
PossiblyInvalidOperand
Emitted when a union-typed operand has some non-numeric/non-stringifiable members.
Fixtures: tests/fixtures/by-kind/invalid_operand/.
PossiblyNullOperand
Emitted when a divisor operand could be null (potential division by zero).
Fixtures: tests/fixtures/by-kind/invalid_operand/.
MismatchingDocblockReturnType
Not yet emitted. Fixtures: tests/fixtures/by-kind/mismatching_docblock_return_type/ (planned).
MismatchingDocblockParamType
Not yet emitted. Fixtures: tests/fixtures/by-kind/mismatching_docblock_param_type/ (planned).
TypeCheckMismatch
Emitted by mir-analyzer/src/stmt/mod.rs.
Fixtures: tests/fixtures/by-kind/type_check_mismatch/.
InvalidArrayOffset
Not yet emitted. Fixtures: tests/fixtures/by-kind/invalid_array_offset/ (planned).
NonExistentArrayOffset
Not yet emitted. No fixtures yet.
PossiblyInvalidArrayOffset
Emitted by mir-analyzer/src/expr/assignment.rs.
Fixtures: tests/fixtures/by-kind/possibly_invalid_array_offset/.
RedundantCondition
Emitted by mir-analyzer/src/stmt/control_flow.rs.
Fixtures: tests/fixtures/by-kind/redundant_condition/.
RedundantCast
Emitted by mir-analyzer/src/expr/casts.rs.
Fixtures: tests/fixtures/by-kind/redundant_cast/.
UnnecessaryVarAnnotation
Not yet emitted. Fixtures: tests/fixtures/by-kind/unnecessary_var_annotation/ (planned).
TypeDoesNotContainType
Not yet emitted. Fixtures: tests/fixtures/by-kind/type_does_not_contain_type/ (planned).
ParadoxicalCondition
Emitted by mir-analyzer/src/stmt/control_flow.rs and mir-analyzer/src/expr/conditional.rs.
Fixtures: tests/fixtures/by-kind/paradoxical_condition/.
UnusedVariable
Emitted by mir-analyzer/src/diagnostics.rs.
Fixtures: tests/fixtures/by-kind/unused_variable/.
UnusedParam
Emitted by mir-analyzer/src/diagnostics.rs.
Fixtures: tests/fixtures/by-kind/unused_param/.
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/.
UnusedProperty
Emitted by mir-analyzer/src/dead_code.rs.
Fixtures: tests/fixtures/by-kind/unused_property/.
UnusedFunction
Emitted by mir-analyzer/src/dead_code.rs.
Fixtures: tests/fixtures/by-kind/unused_function/.
UnusedForeachValue
Emitted by mir-analyzer/src/diagnostics.rs.
Fixtures: tests/fixtures/by-kind/unused_foreach_value/.
ReadonlyPropertyAssignment
Emitted by mir-analyzer/src/expr/assignment.rs.
Fixtures: tests/fixtures/by-kind/readonly_property_assignment/.
UnimplementedAbstractMethod
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/unimplemented_abstract_method/.
UnimplementedInterfaceMethod
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/unimplemented_interface_method/.
MethodSignatureMismatch
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/method_signature_mismatch/.
OverriddenMethodAccess
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/overridden_method_access/.
DirectConstructorCall
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/undefined_method/direct_constructor_call*.phpt.
FinalClassExtended
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/final_class_extended/.
FinalMethodOverridden
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/final_method_overridden/.
AbstractInstantiation
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/abstract_instantiation/.
InterfaceInstantiation
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/abstract_instantiation/interface_instantiation.phpt.
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/.
TaintedInput
Not yet emitted (generic taint sink; specific sinks use TaintedHtml, TaintedSql, TaintedShell).
No fixtures yet.
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/.
ShadowedTemplateParam
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/shadowed_template_param/.
DeprecatedCall
Emitted by mir-analyzer/src/call/function.rs.
Fixtures: tests/fixtures/by-kind/deprecated_call/.
DeprecatedProperty
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/undefined_property/deprecated_property_*.phpt.
DeprecatedConstant
Emitted by mir-analyzer/src/expr/objects.rs.
Fixtures: tests/fixtures/by-kind/deprecated_call/deprecated_class_const_fetch*.phpt.
DeprecatedInterface
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/deprecated_class/deprecated_interface*.phpt.
DeprecatedTrait
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/deprecated_trait/.
DeprecatedMethodCall
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/deprecated_method_call/.
DeprecatedMethod
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/deprecated_method/.
DeprecatedClass
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/deprecated_class/.
InternalMethod
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/internal_method/.
MissingReturnType
Not yet emitted. Fixtures: tests/fixtures/by-kind/missing_return_type/ (planned).
MissingParamType
Not yet emitted. Fixtures: tests/fixtures/by-kind/missing_param_type/ (planned).
InvalidThrow
Emitted by mir-analyzer/src/stmt/flow.rs.
Fixtures: tests/fixtures/by-kind/invalid_throw/.
InvalidCatch
Emitted by mir-analyzer/src/stmt/control_flow.rs.
Fixtures: tests/fixtures/by-kind/invalid_catch/.
MissingThrowsDocblock
Emitted by mir-analyzer/src/stmt/flow.rs.
Fixtures: tests/fixtures/by-kind/missing_throws_docblock/.
ImplicitToStringCast
Emitted by mir-analyzer/src/stmt/expressions.rs.
Fixtures: tests/fixtures/by-kind/implicit_to_string_cast/.
ImplicitFloatToIntCast
Emitted by mir-analyzer/src/call/args.rs.
Fixtures: tests/fixtures/by-kind/implicit_float_to_int_cast/.
ParseError
Emitted by mir-analyzer/src/parser/mod.rs.
Fixtures: tests/fixtures/by-kind/parse_error/.
InvalidDocblock
Emitted by mir-analyzer/src/collector/annotation.rs.
Fixtures: tests/fixtures/by-kind/invalid_docblock/.
MixedArgument
Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_argument/ (planned).
MixedAssignment
Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_assignment/ (planned).
MixedMethodCall
Emitted by mir-analyzer/src/call/method.rs.
Fixtures: tests/fixtures/by-kind/mixed_method_call/.
MixedPropertyFetch
Not yet emitted. Fixtures: tests/fixtures/by-kind/mixed_property_fetch/ (planned).
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/.
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/.
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/.
CircularInheritance
Emitted by mir-analyzer/src/class.rs.
Fixtures: tests/fixtures/by-kind/circular_inheritance/.
InvalidTraitUse
Emitted by mir-analyzer/src/body_analysis.rs.
Fixtures: tests/fixtures/by-kind/invalid_trait_use/.
Implementations§
Source§impl IssueKind
impl IssueKind
Sourcepub fn default_severity(&self) -> Severity
pub fn default_severity(&self) -> Severity
Default severity for this issue kind.
Sourcepub fn code(&self) -> &'static str
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:
| Range | Category |
|---|---|
| 0001 – 0099 | Undefined symbols |
| 0100 – 0199 | Nullability |
| 0200 – 0299 | Type mismatches |
| 0300 – 0399 | Array / offset |
| 0400 – 0499 | Redundancy |
| 0500 – 0599 | Dead code |
| 0600 – 0699 | Readonly |
| 0700 – 0799 | Inheritance |
| 0800 – 0899 | Security (taint) |
| 0900 – 0999 | Generics |
| 1000 – 1099 | Deprecation / internal |
| 1100 – 1199 | Missing types / docblocks |
| 1200 – 1299 | Mixed |
| 1300 – 1399 | Trait |
| 1400 – 1499 | Parse |
| 1500 – 1599 | Other |
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IssueKind
impl<'de> Deserialize<'de> for IssueKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for IssueKind
impl StructuralPartialEq for IssueKind
Auto Trait Implementations§
impl Freeze for IssueKind
impl RefUnwindSafe for IssueKind
impl Send for IssueKind
impl Sync for IssueKind
impl Unpin for IssueKind
impl UnsafeUnpin for IssueKind
impl UnwindSafe for IssueKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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<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,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
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,
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,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more