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
DivideByZeroAttempted to divide by zero in an arithmetic subsitution.
NegativeExponentAttempted 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]
impl PartialEq for ExpansionErrorfn eq(&self, other: &ExpansionError) -> bool[src]
fn eq(&self, other: &ExpansionError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ExpansionError) -> bool[src]
fn ne(&self, other: &ExpansionError) -> boolThis method tests for !=.
impl Eq for ExpansionError[src]
impl Eq for ExpansionErrorimpl Clone for ExpansionError[src]
impl Clone for ExpansionErrorfn clone(&self) -> ExpansionError[src]
fn clone(&self) -> ExpansionErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ExpansionError[src]
impl Debug for ExpansionErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for ExpansionError[src]
impl Error for ExpansionErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
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]
impl Display for ExpansionErrorfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl IsFatalError for ExpansionError[src]
impl IsFatalError for ExpansionErrorimpl From<ExpansionError> for RuntimeError[src]
impl From<ExpansionError> for RuntimeErrorfn from(err: ExpansionError) -> Self[src]
fn from(err: ExpansionError) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ExpansionError
impl Send for ExpansionErrorimpl Sync for ExpansionError
impl Sync for ExpansionError