Struct valkyrie_errors::ValkyrieError
source · pub struct ValkyrieError {
pub kind: ValkyrieErrorKind,
pub level: ReportKind,
}
Fields§
§kind: ValkyrieErrorKind
§level: ReportKind
Implementations§
source§impl ValkyrieError
impl ValkyrieError
pub fn as_report(&self) -> ValkyrieReport
source§impl ValkyrieError
impl ValkyrieError
pub fn duplicate_type(name: String, this: FileSpan, last: FileSpan) -> Self
pub fn duplicate_function(name: String, this: FileSpan, last: FileSpan) -> Self
pub fn duplicate_variable(name: String, this: FileSpan, last: FileSpan) -> Self
source§impl ValkyrieError
impl ValkyrieError
pub fn runtime_error(message: impl Into<String>) -> Self
Trait Implementations§
source§impl Clone for ValkyrieError
impl Clone for ValkyrieError
source§fn clone(&self) -> ValkyrieError
fn clone(&self) -> ValkyrieError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValkyrieError
impl Debug for ValkyrieError
source§impl Display for ValkyrieError
impl Display for ValkyrieError
source§impl Error for ValkyrieError
impl Error for ValkyrieError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for ValkyrieError
impl From<Error> for ValkyrieError
source§impl From<ParseBoolError> for ValkyrieError
impl From<ParseBoolError> for ValkyrieError
source§fn from(value: ParseBoolError) -> Self
fn from(value: ParseBoolError) -> Self
Converts to this type from the input type.
source§impl From<ParseCharError> for ValkyrieError
impl From<ParseCharError> for ValkyrieError
source§fn from(value: ParseCharError) -> Self
fn from(value: ParseCharError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ValkyrieError
impl From<ParseError> for ValkyrieError
source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ValkyrieError
impl From<ParseError> for ValkyrieError
source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for ValkyrieError
impl From<ParseFloatError> for ValkyrieError
source§fn from(value: ParseFloatError) -> Self
fn from(value: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ValkyrieError
impl From<ParseIntError> for ValkyrieError
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<RuntimeError> for ValkyrieError
impl From<RuntimeError> for ValkyrieError
source§fn from(value: RuntimeError) -> Self
fn from(value: RuntimeError) -> Self
Converts to this type from the input type.