Enum conch_runtime::error::ExpansionError
[−]
[src]
pub enum ExpansionError { DivideByZero, NegativeExponent, BadAssig(String), EmptyParameter(String, String), }
An error which may arise during parameter expansion.
Variants
DivideByZero
Attempted to divide by zero in an arithmetic subsitution.
NegativeExponent
Attempted to raise to a negative power in an arithmetic subsitution.
BadAssig(String)
Attempted to assign a special parameter, e.g. ${!:-value}
.
EmptyParameter(String, String)
Attempted to evaluate a null or unset parameter, i.e. ${var:?msg}
.
Trait Implementations
impl PartialEq for ExpansionError
[src]
fn eq(&self, __arg_0: &ExpansionError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExpansionError) -> bool
[src]
This method tests for !=
.
impl Eq for ExpansionError
[src]
impl Clone for ExpansionError
[src]
fn clone(&self) -> ExpansionError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ExpansionError
[src]
impl Error for ExpansionError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for ExpansionError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more