Enum nu_protocol::ShellError
source · pub enum ShellError {
Show 97 variants
OperatorMismatch {
op_span: Span,
lhs_ty: String,
lhs_span: Span,
rhs_ty: String,
rhs_span: Span,
},
OperatorOverflow {
msg: String,
span: Span,
help: String,
},
PipelineMismatch {
exp_input_type: String,
dst_span: Span,
src_span: Span,
},
OnlySupportsThisInputType {
exp_input_type: String,
wrong_type: String,
dst_span: Span,
src_span: Span,
},
PipelineEmpty {
dst_span: Span,
},
TypeMismatch {
err_message: String,
span: Span,
},
IncorrectValue {
msg: String,
val_span: Span,
call_span: Span,
},
UnsupportedOperator {
operator: Operator,
span: Span,
},
AssignmentRequiresVar {
lhs_span: Span,
},
AssignmentRequiresMutableVar {
lhs_span: Span,
},
UnknownOperator {
op_token: String,
span: Span,
},
MissingParameter {
param_name: String,
span: Span,
},
IncompatibleParameters {
left_message: String,
left_span: Span,
right_message: String,
right_span: Span,
},
DelimiterError {
msg: String,
span: Span,
},
IncompatibleParametersSingle {
msg: String,
span: Span,
},
ExternalNotSupported {
span: Span,
},
InvalidProbability {
span: Span,
},
InvalidRange {
left_flank: String,
right_flank: String,
span: Span,
},
NushellFailed {
msg: String,
},
NushellFailedSpanned {
msg: String,
label: String,
span: Span,
},
NushellFailedHelp {
msg: String,
help: String,
},
VariableNotFoundAtRuntime {
span: Span,
},
EnvVarNotFoundAtRuntime {
envvar_name: String,
span: Span,
},
ModuleNotFoundAtRuntime {
mod_name: String,
span: Span,
},
OverlayNotFoundAtRuntime {
overlay_name: String,
span: Span,
},
NotFound {
span: Span,
},
CantConvert {
to_type: String,
from_type: String,
span: Span,
help: Option<String>,
},
CantConvertToDuration {
details: String,
dst_span: Span,
src_span: Span,
help: Option<String>,
},
EnvVarNotAString {
envvar_name: String,
span: Span,
},
AutomaticEnvVarSetManually {
envvar_name: String,
span: Span,
},
CannotReplaceEnv {
span: Span,
},
DivisionByZero {
span: Span,
},
CannotCreateRange {
span: Span,
},
AccessBeyondEnd {
max_idx: usize,
span: Span,
},
InsertAfterNextFreeIndex {
available_idx: usize,
span: Span,
},
AccessEmptyContent {
span: Span,
},
AccessBeyondEndOfStream {
span: Span,
},
IncompatiblePathAccess {
type_name: String,
span: Span,
},
CantFindColumn {
col_name: String,
span: Span,
src_span: Span,
},
ColumnAlreadyExists {
col_name: String,
span: Span,
src_span: Span,
},
NotAList {
dst_span: Span,
src_span: Span,
},
ColumnDefinedTwice {
second_use: Span,
first_use: Span,
},
ExternalCommand {
label: String,
help: String,
span: Span,
},
UnsupportedInput(String, String, Span, Span),
DatetimeParseError(String, Span),
NetworkFailure(String, Span),
CommandNotFound(Span),
AliasNotFound(Span),
FlagNotFound(String, Span),
FileNotFound(Span),
FileNotFoundCustom(String, Span),
PluginFailedToLoad(String),
PluginFailedToEncode(String),
PluginFailedToDecode(String),
IOInterrupted(String, Span),
IOError(String),
IOErrorSpanned(String, Span),
PermissionDeniedError(String, Span),
OutOfMemoryError(String, Span),
NotADirectory(Span),
DirectoryNotFound(Span, Option<String>),
DirectoryNotFoundCustom(String, Span),
MoveNotPossible {
source_message: String,
source_span: Span,
destination_message: String,
destination_span: Span,
},
MoveNotPossibleSingle(String, Span),
CreateNotPossible(String, Span),
ChangeAccessTimeNotPossible(String, Span),
ChangeModifiedTimeNotPossible(String, Span),
RemoveNotPossible(String, Span),
NoFileToBeRemoved(/* private fields */),
NoFileToBeMoved(/* private fields */),
NoFileToBeCopied(/* private fields */),
ReadingFile(String, Span),
DidYouMean(String, Span),
DidYouMeanCustom(String, String, Span),
NonUtf8(Span),
NonUtf8Custom(String, Span),
DowncastNotPossible(String, Span),
UnsupportedConfigValue(String, String, Span),
MissingConfigValue(String, Span),
NeedsPositiveValue(Span),
GenericError(String, String, Option<Span>, Option<String>, Vec<ShellError>),
OutsideSpannedLabeledError(String, String, String, Span),
RemovedCommand(String, String, Span),
NonUnicodeInput,
UnexpectedAbbrComponent(String),
EvalBlockWithInput(Span, Vec<ShellError>),
Break(Span),
Continue(Span),
Return(Span, Box<Value>),
RecursionLimitReached {
recursion_limit: u64,
span: Option<Span>,
},
LazyRecordAccessFailed {
message: String,
column_name: String,
span: Span,
},
InterruptedByUser {
span: Option<Span>,
},
MatchGuardNotBool {
span: Span,
},
MissingConstEvalImpl {
span: Span,
},
NotAConstant(Span),
NotAConstCommand(Span),
NotAConstHelp(Span),
}
Expand description
The fundamental error type for the evaluation engine. These cases represent different kinds of errors the evaluator might face, along with helpful spans to label. An error renderer will take this error value and pass it into an error viewer to display to the user.
Variants§
OperatorMismatch
An operator received two arguments of incompatible types.
Resolution
Check each argument’s type and convert one or both as needed.
OperatorOverflow
An arithmetic operation’s resulting value overflowed its possible size.
Resolution
Check the inputs to the operation and add guards for their sizes. Integers are generally of size i64, floats are generally f64.
PipelineMismatch
The pipelined input into a command was not of the expected type. For example, it might expect a string input, but received a table instead.
Resolution
Check the relevant pipeline and extract or convert values as needed.
OnlySupportsThisInputType
The pipelined input into a command was not of the expected type. For example, it might expect a string input, but received a table instead.
(duplicate of ShellError::PipelineMismatch
that reports the observed type)
Resolution
Check the relevant pipeline and extract or convert values as needed.
PipelineEmpty
No input value was piped into the command.
Resolution
Only use this command to process values from a previous expression.
TypeMismatch
A command received an argument of the wrong type.
Resolution
Convert the argument type before passing it in, or change the command to accept the type.
IncorrectValue
A command received an argument with correct type but incorrect value.
Resolution
Correct the argument value before passing it in or change the command.
UnsupportedOperator
This value cannot be used with this operator.
Resolution
Not all values, for example custom values, can be used with all operators. Either implement support for the operator on this type, or convert the type to a supported one.
AssignmentRequiresVar
Invalid assignment left-hand side
Resolution
Assignment requires that you assign to a variable or variable cell path.
AssignmentRequiresMutableVar
Invalid assignment left-hand side
Resolution
Assignment requires that you assign to a mutable variable or cell path.
UnknownOperator
MissingParameter
IncompatibleParameters
Two parameters conflict with each other or are otherwise mutually exclusive.
Resolution
Remove one of the parameters/options and try again.
DelimiterError
There’s some issue with number or matching of delimiters in an expression.
Resolution
Check your syntax for mismatched braces, RegExp syntax errors, etc, based on the specific error message.
IncompatibleParametersSingle
An operation received parameters with some sort of incompatibility (for example, different number of rows in a table, incompatible column names, etc).
Resolution
Refer to the specific error message for details on what’s incompatible and then fix your inputs to make sure they match that way.
ExternalNotSupported
You’re trying to run an unsupported external command.
Resolution
Make sure there’s an appropriate run-external
declaration for this external command.
InvalidProbability
The given probability input is invalid. The probability must be between 0 and 1.
Resolution
Make sure the probability is between 0 and 1 and try again.
InvalidRange
The first value in a ..
range must be compatible with the second one.
Resolution
Check to make sure both values are compatible, and that the values are enumerable in Nushell.
NushellFailed
Catastrophic nushell failure. This reflects a completely unexpected or unrecoverable error.
Resolution
It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information.
NushellFailedSpanned
Catastrophic nushell failure. This reflects a completely unexpected or unrecoverable error.
Resolution
It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information.
NushellFailedHelp
Catastrophic nushell failure. This reflects a completely unexpected or unrecoverable error.
Resolution
It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information.
VariableNotFoundAtRuntime
A referenced variable was not found at runtime.
Resolution
Check the variable name. Did you typo it? Did you forget to declare it? Is the casing right?
EnvVarNotFoundAtRuntime
A referenced environment variable was not found at runtime.
Resolution
Check the environment variable name. Did you typo it? Did you forget to declare it? Is the casing right?
ModuleNotFoundAtRuntime
A referenced module was not found at runtime.
Resolution
Check the module name. Did you typo it? Did you forget to declare it? Is the casing right?
OverlayNotFoundAtRuntime
A referenced overlay was not found at runtime.
Resolution
Check the overlay name. Did you typo it? Did you forget to declare it? Is the casing right?
NotFound
The given item was not found. This is a fairly generic error that depends on context.
Resolution
This error is triggered in various places, and simply signals that “something” was not found. Refer to the specific error message for further details.
CantConvert
Failed to convert a value of one type into a different type.
Resolution
Not all values can be coerced this way. Check the supported type(s) and try again.
CantConvertToDuration
EnvVarNotAString
An environment variable cannot be represented as a string.
Resolution
Not all types can be converted to environment variable values, which must be strings. Check the input type and try again.
AutomaticEnvVarSetManually
This environment variable cannot be set manually.
Resolution
This environment variable is set automatically by Nushell and cannot not be set manually.
CannotReplaceEnv
It is not possible to replace the entire environment at once
Resolution
Setting the entire environment is not allowed. Change environment variables individually instead.
DivisionByZero
Division by zero is not a thing.
Resolution
Add a guard of some sort to check whether a denominator input to this division is zero, and branch off if that’s the case.
CannotCreateRange
An error happened while tryin to create a range.
This can happen in various unexpected situations, for example if the range would loop forever (as would be the case with a 0-increment).
Resolution
Check your range values to make sure they’re countable and would not loop forever.
AccessBeyondEnd
You attempted to access an index beyond the available length of a value.
Resolution
Check your lengths and try again.
InsertAfterNextFreeIndex
You attempted to insert data at a list position higher than the end.
Resolution
To insert data into a list, assign to the last used index + 1.
AccessEmptyContent
AccessBeyondEndOfStream
You attempted to access an index beyond the available length of a stream.
Resolution
Check your lengths and try again.
IncompatiblePathAccess
Tried to index into a type that does not support pathed access.
Resolution
Check your types. Only composite types can be pathed into.
CantFindColumn
The requested column does not exist.
Resolution
Check the spelling of your column name. Did you forget to rename a column somewhere?
ColumnAlreadyExists
Attempted to insert a column into a table, but a column with that name already exists.
Resolution
Drop or rename the existing column (check rename -h
) and try again.
NotAList
The given operation can only be performed on lists.
Resolution
Check the input type to this command. Are you sure it’s a list?
ColumnDefinedTwice
Fields can only be defined once
Resolution
Check the record to ensure you aren’t reusing the same field name
ExternalCommand
An error happened while performing an external command.
Resolution
This error is fairly generic. Refer to the specific error message for further details.
UnsupportedInput(String, String, Span, Span)
An operation was attempted with an input unsupported for some reason.
Resolution
This error is fairly generic. Refer to the specific error message for further details.
DatetimeParseError(String, Span)
Failed to parse an input into a datetime value.
Resolution
Make sure your datetime input format is correct.
For example, these are some valid formats:
- “5 pm”
- “2020/12/4”
- “2020.12.04 22:10 +2”
- “2020-04-12 22:10:57 +02:00”
- “2020-04-12T22:10:57.213231+02:00”
- “Tue, 1 Jul 2003 10:52:37 +0200”“#
NetworkFailure(String, Span)
CommandNotFound(Span)
Help text for this command could not be found.
Resolution
Check the spelling for the requested command and try again. Are you sure it’s defined and your configurations are loading correctly? Can you execute it?
AliasNotFound(Span)
This alias could not be found
Resolution
The alias does not exist in the current scope. It might exist in another scope or overlay or be hidden.
FlagNotFound(String, Span)
A flag was not found.
FileNotFound(Span)
Failed to find a file during a nushell operation.
Resolution
Does the file in the error message exist? Is it readable and accessible? Is the casing right?
FileNotFoundCustom(String, Span)
Failed to find a file during a nushell operation.
Resolution
Does the file in the error message exist? Is it readable and accessible? Is the casing right?
PluginFailedToLoad(String)
A plugin failed to load.
Resolution
This is a fairly generic error. Refer to the specific error message for further details.
PluginFailedToEncode(String)
PluginFailedToDecode(String)
A message to a plugin failed to decode.
Resolution
This is either an issue with the inputs to a plugin (bad JSON?) or a bug in the plugin itself. Fix or report as appropriate.
IOInterrupted(String, Span)
I/O operation interrupted.
Resolution
This is a generic error. Refer to the specific error message for further details.
IOError(String)
An I/O operation failed.
Resolution
This is a generic error. Refer to the specific error message for further details.
IOErrorSpanned(String, Span)
An I/O operation failed.
Resolution
This is a generic error. Refer to the specific error message for further details.
PermissionDeniedError(String, Span)
Permission for an operation was denied.
Resolution
This is a generic error. Refer to the specific error message for further details.
OutOfMemoryError(String, Span)
Out of memory.
Resolution
This is a generic error. Refer to the specific error message for further details.
NotADirectory(Span)
Tried to cd
to a path that isn’t a directory.
Resolution
Make sure the path is a directory. It currently exists, but is of some other type, like a file.
DirectoryNotFound(Span, Option<String>)
Attempted to perform an operation on a directory that doesn’t exist.
Resolution
Make sure the directory in the error message actually exists before trying again.
DirectoryNotFoundCustom(String, Span)
Attempted to perform an operation on a directory that doesn’t exist.
Resolution
Make sure the directory in the error message actually exists before trying again.
MoveNotPossible
The requested move operation cannot be completed. This is typically because both paths exist, but are of different types. For example, you might be trying to overwrite an existing file with a directory.
Resolution
Make sure the destination path does not exist before moving a directory.
MoveNotPossibleSingle(String, Span)
The requested move operation cannot be completed. This is typically because both paths exist, but are of different types. For example, you might be trying to overwrite an existing file with a directory.
Resolution
Make sure the destination path does not exist before moving a directory.
CreateNotPossible(String, Span)
Failed to create either a file or directory.
Resolution
This is a fairly generic error. Refer to the specific error message for further details.
ChangeAccessTimeNotPossible(String, Span)
Changing the access time (“atime”) of this file is not possible.
Resolution
This can be for various reasons, such as your platform or permission flags. Refer to the specific error message for more details.
ChangeModifiedTimeNotPossible(String, Span)
Changing the modification time (“mtime”) of this file is not possible.
Resolution
This can be for various reasons, such as your platform or permission flags. Refer to the specific error message for more details.
RemoveNotPossible(String, Span)
Unable to remove this item.
Resolution
Removal can fail for a number of reasons, such as permissions problems. Refer to the specific error message for more details.
NoFileToBeRemoved(/* private fields */)
NoFileToBeMoved(/* private fields */)
NoFileToBeCopied(/* private fields */)
ReadingFile(String, Span)
DidYouMean(String, Span)
A name was not found. Did you mean a different name?
Resolution
The error message will suggest a possible match for what you meant.
DidYouMeanCustom(String, String, Span)
A name was not found. Did you mean a different name?
Resolution
The error message will suggest a possible match for what you meant.
NonUtf8(Span)
The given input must be valid UTF-8 for further processing.
Resolution
Check your input’s encoding. Are there any funny characters/bytes?
NonUtf8Custom(String, Span)
The given input must be valid UTF-8 for further processing.
Resolution
Check your input’s encoding. Are there any funny characters/bytes?
DowncastNotPossible(String, Span)
A custom value could not be converted to a Dataframe.
Resolution
Make sure conversion to a Dataframe is possible for this value or convert it to a type that does, first.
UnsupportedConfigValue(String, String, Span)
The value given for this configuration is not supported.
Resolution
Refer to the specific error message for details and convert values as needed.
MissingConfigValue(String, Span)
An expected configuration value is not present.
Resolution
Refer to the specific error message and add the configuration value to your config file as needed.
NeedsPositiveValue(Span)
Negative value passed when positive one is required.
Resolution
Guard against negative values or check your inputs.
GenericError(String, String, Option<Span>, Option<String>, Vec<ShellError>)
This is a generic error type used for different situations.
OutsideSpannedLabeledError(String, String, String, Span)
This is a generic error type used for different situations.
RemovedCommand(String, String, Span)
Attempted to use a command that has been removed from Nushell.
Resolution
Check the help for the new suggested command and update your script accordingly.
NonUnicodeInput
UnexpectedAbbrComponent(String)
EvalBlockWithInput(Span, Vec<ShellError>)
Failed to eval block with specific pipeline input.
Break(Span)
Break event, which may become an error if used outside of a loop
Continue(Span)
Continue event, which may become an error if used outside of a loop
Return(Span, Box<Value>)
Return event, which may become an error if used outside of a function
RecursionLimitReached
LazyRecordAccessFailed
An attempt to access a record column failed.
InterruptedByUser
Operation interrupted by user
MatchGuardNotBool
An attempt to use, as a match guard, an expression that does not resolve into a boolean
MissingConstEvalImpl
An attempt to run a command marked for constant evaluation lacking the const. eval. implementation.
This is an internal Nushell error, please file an issue.
NotAConstant(Span)
Tried assigning non-constant value to a constant
Resolution
Only a subset of expressions are allowed to be assigned as a constant during parsing.
NotAConstCommand(Span)
Tried running a command that is not const-compatible
Resolution
Only a subset of builtin commands, and custom commands built only from those commands, can run at parse time.
NotAConstHelp(Span)
Tried getting a help message at parse time.
Resolution
Help messages are not supported at parse time.
Implementations§
source§impl ShellError
impl ShellError
pub fn wrap(self, working_set: &StateWorkingSet<'_>, span: Span) -> ParseError
Trait Implementations§
source§impl Clone for ShellError
impl Clone for ShellError
source§fn clone(&self) -> ShellError
fn clone(&self) -> ShellError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShellError
impl Debug for ShellError
source§impl<'de> Deserialize<'de> for ShellError
impl<'de> Deserialize<'de> for ShellError
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>,
source§impl Diagnostic for ShellError
impl Diagnostic for ShellError
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
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 + '_>>
Diagnostic
. Do you have any
advice for the poor soul who’s just run into this issue?source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic
’s Diagnostic::source_code
source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic
’s Diagnostic::labels
to.Diagnostic
s.source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandler
s to change the display format
of this diagnostic. Read moresource§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a, Global>>
Diagnostic
.source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
source§impl Display for ShellError
impl Display for ShellError
source§impl Error for ShellError
impl Error for ShellError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Error> for ShellError
impl From<Error> for ShellError
source§fn from(input: Error) -> ShellError
fn from(input: Error) -> ShellError
Auto Trait Implementations§
impl !RefUnwindSafe for ShellError
impl Send for ShellError
impl Sync for ShellError
impl Unpin for ShellError
impl !UnwindSafe for ShellError
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
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where C: Color,
§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
§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 more§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