#[repr(u16)]pub enum IssueCode {
Show 288 variants
AbstractClassUsedAsAttribute = 0,
AbstractInstantiation = 1,
AlwaysMatchingSwitchCase = 2,
AmbiguousClassLikeConstantAccess = 3,
AmbiguousInstantiationTarget = 4,
AmbiguousObjectMethodAccess = 5,
AmbiguousObjectPropertyAccess = 6,
ArrayAppendInReadContext = 7,
ArrayToStringConversion = 8,
AssignmentToConstant = 9,
AssignmentToThis = 10,
AttributeNotRepeatable = 11,
AvoidCatchingError = 12,
BackedPropertyReferenceHook = 13,
CatchTypeNotThrowable = 14,
ClassNotMarkedAsAttribute = 15,
CloneInsideLoop = 16,
ConditionIsTooComplex = 17,
ConflictingReferenceConstraint = 18,
ConflictingTemplateEqualityBounds = 19,
DeprecatedClass = 20,
DeprecatedClosure = 21,
DeprecatedConstant = 22,
DeprecatedFeature = 23,
DeprecatedFunction = 24,
DeprecatedMethod = 25,
DeprecatedTrait = 26,
DirectTraitConstantAccess = 27,
DocblockTypeMismatch = 28,
DuplicateArrayKey = 29,
DuplicateCaughtType = 30,
DuplicateClosureUseVariable = 31,
DuplicateNamedArgument = 32,
DynamicStaticMethodCall = 33,
EmptyMatchExpression = 34,
EnumInstantiation = 35,
EnumIteration = 36,
ExcessTemplateParameter = 37,
ExpressionIsTooComplex = 38,
ExtendFinalClass = 39,
FalsableReturnStatement = 40,
FalseArgument = 41,
FalseIterator = 42,
FalseOperand = 43,
GenericObjectIteration = 44,
HiddenGeneratorReturn = 45,
ImplicitResourceToStringCast = 46,
ImplicitToStringCast = 47,
ImpossibleArrayAccess = 48,
ImpossibleArrayAssignment = 49,
ImpossibleAssignment = 50,
ImpossibleCondition = 51,
ImpossibleKeyCheck = 52,
ImpossibleNonnullEntryCheck = 53,
ImpossibleNullTypeComparison = 54,
ImpossibleTypeComparison = 55,
ImpureConstruct = 56,
ImpureStaticVariable = 57,
IncompatibleConstantAccess = 58,
IncompatibleConstantOverride = 59,
IncompatibleConstantType = 60,
IncompatibleConstantVisibility = 61,
IncompatibleParameterCount = 62,
IncompatibleParameterName = 63,
IncompatibleParameterType = 64,
IncompatiblePropertyAccess = 65,
IncompatiblePropertyDefault = 66,
IncompatiblePropertyHookParameterType = 67,
IncompatiblePropertyHookSignature = 68,
IncompatiblePropertyOverride = 69,
IncompatiblePropertyReadonly = 70,
IncompatiblePropertyStatic = 71,
IncompatiblePropertyType = 72,
IncompatiblePropertyVisibility = 73,
IncompatibleReadonlyModifier = 74,
IncompatibleReturnType = 75,
IncompatibleStaticModifier = 76,
IncompatibleTemplateLowerBound = 77,
IncompatibleVisibility = 78,
InconsistentTemplate = 79,
InterfaceInstantiation = 80,
InvalidArgument = 81,
InvalidArrayAccess = 82,
InvalidArrayAccessAssignmentValue = 83,
InvalidArrayElement = 84,
InvalidArrayElementKey = 85,
InvalidArrayIndex = 86,
InvalidAssignment = 87,
InvalidAttributeTarget = 88,
InvalidBreak = 89,
InvalidCallable = 90,
InvalidCatchType = 91,
InvalidCatchTypeNotClassOrInterface = 92,
InvalidClassConstantOnString = 93,
InvalidClassStringExpression = 94,
InvalidClone = 95,
InvalidConstantSelector = 96,
InvalidContinue = 97,
InvalidDestructuringSource = 98,
InvalidDocblock = 99,
InvalidEnumCaseValue = 100,
InvalidExtend = 101,
InvalidForeachKey = 102,
InvalidForeachValue = 103,
InvalidGeneratorReturnType = 104,
InvalidGlobal = 105,
InvalidImplement = 106,
InvalidIssetExpression = 107,
InvalidIterator = 108,
InvalidMemberSelector = 109,
InvalidMethodAccess = 110,
InvalidNamedArgument = 111,
InvalidOperand = 112,
InvalidOverrideAttribute = 113,
InvalidParentType = 114,
InvalidPassByReference = 115,
InvalidPropertyAccess = 116,
InvalidPropertyAssignmentValue = 117,
InvalidPropertyRead = 118,
InvalidPropertyWrite = 119,
InvalidReturnStatement = 120,
InvalidScopeKeywordContext = 121,
InvalidStaticMethodAccess = 122,
InvalidStaticMethodCall = 123,
InvalidStaticPropertyAccess = 124,
InvalidTemplateParameter = 125,
InvalidThrow = 126,
InvalidTraitAliasModifier = 127,
InvalidTraitUse = 128,
InvalidTypeCast = 129,
InvalidUnset = 130,
InvalidYieldKeyType = 131,
InvalidYieldValueType = 132,
LessSpecificArgument = 133,
LessSpecificNestedArgumentType = 134,
LessSpecificNestedReturnStatement = 135,
LessSpecificReturnStatement = 136,
ListUsedInReadContext = 137,
MatchArmAlwaysTrue = 138,
MatchDefaultArmAlwaysExecuted = 139,
MatchExpressionOnlyDefaultArm = 140,
MatchNotExhaustive = 141,
MatchSubjectTypeIsNever = 142,
MethodAccessOnNull = 143,
MismatchedArrayIndex = 144,
MissingConstantType = 145,
MissingConstructor = 146,
MissingMagicMethod = 147,
MissingOverrideAttribute = 148,
MissingParameterType = 149,
MissingPropertyType = 150,
MissingRequiredInterface = 151,
MissingRequiredParent = 152,
MissingReturnStatement = 153,
MissingReturnType = 154,
MissingTemplateParameter = 155,
MixedArgument = 156,
MixedArrayAccess = 157,
MixedArrayAssignment = 158,
MixedArrayIndex = 159,
MixedAssignment = 160,
MixedClone = 161,
MixedDestructuringShape = 162,
MixedMethodAccess = 163,
MixedOperand = 164,
MixedPropertyAccess = 165,
MixedPropertyTypeCoercion = 166,
MixedReturnStatement = 167,
NameAlreadyInUse = 168,
NamedArgumentAfterPositional = 169,
NamedArgumentNotAllowed = 170,
NamedArgumentOverridesPositional = 171,
NeverMatchingSwitchCase = 172,
NeverReturn = 173,
NoValidCatchTypeFound = 174,
NoValue = 175,
NonClassUsedAsAttribute = 176,
NonDocumentedConstant = 177,
NonDocumentedMethod = 178,
NonDocumentedProperty = 179,
NonExistentAttributeClass = 180,
NonExistentCatchType = 181,
NonExistentClass = 182,
NonExistentClassConstant = 183,
NonExistentClassLike = 184,
NonExistentConstant = 185,
NonExistentFunction = 186,
NonExistentMethod = 187,
NonExistentProperty = 188,
NonExistentUseImport = 189,
NonIterableObjectIteration = 190,
NonStaticAbstractImplementation = 191,
NullArgument = 192,
NullArrayAccess = 193,
NullArrayIndex = 194,
NullIterator = 195,
NullOperand = 196,
NullPropertyAccess = 197,
NullableReturnStatement = 198,
OverrideFinalConstant = 199,
OverrideFinalMethod = 200,
OverrideFinalProperty = 201,
OverrideFinalPropertyHook = 202,
ParadoxicalCondition = 203,
ParentOutsideClassScope = 204,
PossibleMethodAccessOnNull = 205,
PossiblyFalseArgument = 206,
PossiblyFalseIterator = 207,
PossiblyFalseOperand = 208,
PossiblyInvalidArgument = 209,
PossiblyInvalidClone = 210,
PossiblyInvalidIterator = 211,
PossiblyInvalidOperand = 212,
PossiblyNonExistentProperty = 213,
PossiblyNullArgument = 214,
PossiblyNullArrayAccess = 215,
PossiblyNullArrayIndex = 216,
PossiblyNullIterator = 217,
PossiblyNullOperand = 218,
PossiblyNullPropertyAccess = 219,
PossiblyStaticAccessOnInterface = 220,
PossiblyUndefinedArrayIndex = 221,
PossiblyUndefinedIntArrayIndex = 222,
PossiblyUndefinedStringArrayIndex = 223,
PossiblyUndefinedVariable = 224,
PropertyTypeCoercion = 225,
PsalmTrace = 226,
RedundantCast = 227,
RedundantComparison = 228,
RedundantCondition = 229,
RedundantDocblockType = 230,
RedundantIssetCheck = 231,
RedundantKeyCheck = 232,
RedundantLogicalOperation = 233,
RedundantNonnullEntryCheck = 234,
RedundantNonnullTypeComparison = 235,
RedundantNullCoalesce = 236,
RedundantNullsafeOperator = 237,
RedundantTypeComparison = 238,
ReferenceConstraintViolation = 239,
ReferenceReusedFromConfusingScope = 240,
ReferenceToUndefinedVariable = 241,
SelfOutsideClassScope = 242,
SkipInKeyedDestructuring = 243,
SpreadInDestructuring = 244,
StaticAccessOnInterface = 245,
StaticOutsideClassScope = 246,
StringConstantSelector = 247,
StringMemberSelector = 248,
TemplateConstraintViolation = 249,
TooFewArguments = 250,
TooManyArguments = 251,
TraitConstantOverride = 252,
TraitInstantiation = 253,
TypeConfirmation = 254,
TypeInspection = 255,
UndefinedIntArrayIndex = 256,
UndefinedStringArrayIndex = 257,
UndefinedVariable = 258,
UndefinedVariableInClosureUse = 259,
UnevaluatedCode = 260,
UnhandledThrownType = 261,
UnimplementedAbstractMethod = 262,
UnimplementedAbstractPropertyHook = 263,
UninitializedProperty = 264,
UnknownClassInstantiation = 265,
UnknownConstantSelectorType = 266,
UnknownIteratorType = 267,
UnknownMatchSubjectType = 268,
UnknownMemberSelectorType = 269,
UnknownYieldFromIteratorType = 270,
UnreachableMatchArm = 271,
UnreachableMatchDefaultArm = 272,
UnreachableSwitchCase = 273,
UnreachableSwitchDefault = 274,
UnsafeInstantiation = 275,
UnusedFunctionCall = 276,
UnusedMethodCall = 277,
UnusedParameter = 278,
UnusedStatement = 279,
UnusedTemplateParameter = 280,
UselessControlFlow = 281,
WhereConstraintViolation = 282,
YieldFromInvalidKeyType = 283,
YieldFromInvalidSendType = 284,
YieldFromInvalidValueType = 285,
YieldFromNonIterable = 286,
YieldOutsideFunction = 287,
}Variants§
AbstractClassUsedAsAttribute = 0
AbstractInstantiation = 1
AlwaysMatchingSwitchCase = 2
AmbiguousClassLikeConstantAccess = 3
AmbiguousInstantiationTarget = 4
AmbiguousObjectMethodAccess = 5
AmbiguousObjectPropertyAccess = 6
ArrayAppendInReadContext = 7
ArrayToStringConversion = 8
AssignmentToConstant = 9
AssignmentToThis = 10
AttributeNotRepeatable = 11
AvoidCatchingError = 12
BackedPropertyReferenceHook = 13
CatchTypeNotThrowable = 14
ClassNotMarkedAsAttribute = 15
CloneInsideLoop = 16
ConditionIsTooComplex = 17
ConflictingReferenceConstraint = 18
ConflictingTemplateEqualityBounds = 19
DeprecatedClass = 20
DeprecatedClosure = 21
DeprecatedConstant = 22
DeprecatedFeature = 23
DeprecatedFunction = 24
DeprecatedMethod = 25
DeprecatedTrait = 26
DirectTraitConstantAccess = 27
DocblockTypeMismatch = 28
DuplicateArrayKey = 29
DuplicateCaughtType = 30
DuplicateClosureUseVariable = 31
DuplicateNamedArgument = 32
DynamicStaticMethodCall = 33
EmptyMatchExpression = 34
EnumInstantiation = 35
EnumIteration = 36
ExcessTemplateParameter = 37
ExpressionIsTooComplex = 38
ExtendFinalClass = 39
FalsableReturnStatement = 40
FalseArgument = 41
FalseIterator = 42
FalseOperand = 43
GenericObjectIteration = 44
HiddenGeneratorReturn = 45
ImplicitResourceToStringCast = 46
ImplicitToStringCast = 47
ImpossibleArrayAccess = 48
ImpossibleArrayAssignment = 49
ImpossibleAssignment = 50
ImpossibleCondition = 51
ImpossibleKeyCheck = 52
ImpossibleNonnullEntryCheck = 53
ImpossibleNullTypeComparison = 54
ImpossibleTypeComparison = 55
ImpureConstruct = 56
ImpureStaticVariable = 57
IncompatibleConstantAccess = 58
IncompatibleConstantOverride = 59
IncompatibleConstantType = 60
IncompatibleConstantVisibility = 61
IncompatibleParameterCount = 62
IncompatibleParameterName = 63
IncompatibleParameterType = 64
IncompatiblePropertyAccess = 65
IncompatiblePropertyDefault = 66
IncompatiblePropertyHookParameterType = 67
IncompatiblePropertyHookSignature = 68
IncompatiblePropertyOverride = 69
IncompatiblePropertyReadonly = 70
IncompatiblePropertyStatic = 71
IncompatiblePropertyType = 72
IncompatiblePropertyVisibility = 73
IncompatibleReadonlyModifier = 74
IncompatibleReturnType = 75
IncompatibleStaticModifier = 76
IncompatibleTemplateLowerBound = 77
IncompatibleVisibility = 78
InconsistentTemplate = 79
InterfaceInstantiation = 80
InvalidArgument = 81
InvalidArrayAccess = 82
InvalidArrayAccessAssignmentValue = 83
InvalidArrayElement = 84
InvalidArrayElementKey = 85
InvalidArrayIndex = 86
InvalidAssignment = 87
InvalidAttributeTarget = 88
InvalidBreak = 89
InvalidCallable = 90
InvalidCatchType = 91
InvalidCatchTypeNotClassOrInterface = 92
InvalidClassConstantOnString = 93
InvalidClassStringExpression = 94
InvalidClone = 95
InvalidConstantSelector = 96
InvalidContinue = 97
InvalidDestructuringSource = 98
InvalidDocblock = 99
InvalidEnumCaseValue = 100
InvalidExtend = 101
InvalidForeachKey = 102
InvalidForeachValue = 103
InvalidGeneratorReturnType = 104
InvalidGlobal = 105
InvalidImplement = 106
InvalidIssetExpression = 107
InvalidIterator = 108
InvalidMemberSelector = 109
InvalidMethodAccess = 110
InvalidNamedArgument = 111
InvalidOperand = 112
InvalidOverrideAttribute = 113
InvalidParentType = 114
InvalidPassByReference = 115
InvalidPropertyAccess = 116
InvalidPropertyAssignmentValue = 117
InvalidPropertyRead = 118
InvalidPropertyWrite = 119
InvalidReturnStatement = 120
InvalidScopeKeywordContext = 121
InvalidStaticMethodAccess = 122
InvalidStaticMethodCall = 123
InvalidStaticPropertyAccess = 124
InvalidTemplateParameter = 125
InvalidThrow = 126
InvalidTraitAliasModifier = 127
InvalidTraitUse = 128
InvalidTypeCast = 129
InvalidUnset = 130
InvalidYieldKeyType = 131
InvalidYieldValueType = 132
LessSpecificArgument = 133
LessSpecificNestedArgumentType = 134
LessSpecificNestedReturnStatement = 135
LessSpecificReturnStatement = 136
ListUsedInReadContext = 137
MatchArmAlwaysTrue = 138
MatchDefaultArmAlwaysExecuted = 139
MatchExpressionOnlyDefaultArm = 140
MatchNotExhaustive = 141
MatchSubjectTypeIsNever = 142
MethodAccessOnNull = 143
MismatchedArrayIndex = 144
MissingConstantType = 145
MissingConstructor = 146
MissingMagicMethod = 147
MissingOverrideAttribute = 148
MissingParameterType = 149
MissingPropertyType = 150
MissingRequiredInterface = 151
MissingRequiredParent = 152
MissingReturnStatement = 153
MissingReturnType = 154
MissingTemplateParameter = 155
MixedArgument = 156
MixedArrayAccess = 157
MixedArrayAssignment = 158
MixedArrayIndex = 159
MixedAssignment = 160
MixedClone = 161
MixedDestructuringShape = 162
MixedMethodAccess = 163
MixedOperand = 164
MixedPropertyAccess = 165
MixedPropertyTypeCoercion = 166
MixedReturnStatement = 167
NameAlreadyInUse = 168
NamedArgumentAfterPositional = 169
NamedArgumentNotAllowed = 170
NamedArgumentOverridesPositional = 171
NeverMatchingSwitchCase = 172
NeverReturn = 173
NoValidCatchTypeFound = 174
NoValue = 175
NonClassUsedAsAttribute = 176
NonDocumentedConstant = 177
NonDocumentedMethod = 178
NonDocumentedProperty = 179
NonExistentAttributeClass = 180
NonExistentCatchType = 181
NonExistentClass = 182
NonExistentClassConstant = 183
NonExistentClassLike = 184
NonExistentConstant = 185
NonExistentFunction = 186
NonExistentMethod = 187
NonExistentProperty = 188
NonExistentUseImport = 189
NonIterableObjectIteration = 190
NonStaticAbstractImplementation = 191
NullArgument = 192
NullArrayAccess = 193
NullArrayIndex = 194
NullIterator = 195
NullOperand = 196
NullPropertyAccess = 197
NullableReturnStatement = 198
OverrideFinalConstant = 199
OverrideFinalMethod = 200
OverrideFinalProperty = 201
OverrideFinalPropertyHook = 202
ParadoxicalCondition = 203
ParentOutsideClassScope = 204
PossibleMethodAccessOnNull = 205
PossiblyFalseArgument = 206
PossiblyFalseIterator = 207
PossiblyFalseOperand = 208
PossiblyInvalidArgument = 209
PossiblyInvalidClone = 210
PossiblyInvalidIterator = 211
PossiblyInvalidOperand = 212
PossiblyNonExistentProperty = 213
PossiblyNullArgument = 214
PossiblyNullArrayAccess = 215
PossiblyNullArrayIndex = 216
PossiblyNullIterator = 217
PossiblyNullOperand = 218
PossiblyNullPropertyAccess = 219
PossiblyStaticAccessOnInterface = 220
PossiblyUndefinedArrayIndex = 221
PossiblyUndefinedIntArrayIndex = 222
PossiblyUndefinedStringArrayIndex = 223
PossiblyUndefinedVariable = 224
PropertyTypeCoercion = 225
PsalmTrace = 226
RedundantCast = 227
RedundantComparison = 228
RedundantCondition = 229
RedundantDocblockType = 230
RedundantIssetCheck = 231
RedundantKeyCheck = 232
RedundantLogicalOperation = 233
RedundantNonnullEntryCheck = 234
RedundantNonnullTypeComparison = 235
RedundantNullCoalesce = 236
RedundantNullsafeOperator = 237
RedundantTypeComparison = 238
ReferenceConstraintViolation = 239
ReferenceReusedFromConfusingScope = 240
ReferenceToUndefinedVariable = 241
SelfOutsideClassScope = 242
SkipInKeyedDestructuring = 243
SpreadInDestructuring = 244
StaticAccessOnInterface = 245
StaticOutsideClassScope = 246
StringConstantSelector = 247
StringMemberSelector = 248
TemplateConstraintViolation = 249
TooFewArguments = 250
TooManyArguments = 251
TraitConstantOverride = 252
TraitInstantiation = 253
TypeConfirmation = 254
TypeInspection = 255
UndefinedIntArrayIndex = 256
UndefinedStringArrayIndex = 257
UndefinedVariable = 258
UndefinedVariableInClosureUse = 259
UnevaluatedCode = 260
UnhandledThrownType = 261
UnimplementedAbstractMethod = 262
UnimplementedAbstractPropertyHook = 263
UninitializedProperty = 264
UnknownClassInstantiation = 265
UnknownConstantSelectorType = 266
UnknownIteratorType = 267
UnknownMatchSubjectType = 268
UnknownMemberSelectorType = 269
UnknownYieldFromIteratorType = 270
UnreachableMatchArm = 271
UnreachableMatchDefaultArm = 272
UnreachableSwitchCase = 273
UnreachableSwitchDefault = 274
UnsafeInstantiation = 275
UnusedFunctionCall = 276
UnusedMethodCall = 277
UnusedParameter = 278
UnusedStatement = 279
UnusedTemplateParameter = 280
UselessControlFlow = 281
WhereConstraintViolation = 282
YieldFromInvalidKeyType = 283
YieldFromInvalidSendType = 284
YieldFromInvalidValueType = 285
YieldFromNonIterable = 286
YieldOutsideFunction = 287
Implementations§
Trait Implementations§
Source§impl Ord for IssueCode
impl Ord for IssueCode
Source§impl PartialOrd for IssueCode
impl PartialOrd for IssueCode
impl Copy for IssueCode
impl Eq for IssueCode
impl StructuralPartialEq for IssueCode
Auto Trait Implementations§
impl Freeze for IssueCode
impl RefUnwindSafe for IssueCode
impl Send for IssueCode
impl Sync for IssueCode
impl Unpin for IssueCode
impl UnwindSafe for IssueCode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);