pub type HintedStrResult<T> = Result<T, HintedString>;Expand description
A result type with a string error message and hints.
Aliased Type§
enum HintedStrResult<T> {
Ok(T),
Err(HintedString),
}Variants§
Trait Implementations§
Source§impl<T> At<T> for HintedStrResult<T>
impl<T> At<T> for HintedStrResult<T>
Source§fn at(self, span: Span) -> SourceResult<T>
fn at(self, span: Span) -> SourceResult<T>
Add the span information.
Source§impl<T> Hint<T> for HintedStrResult<T>
impl<T> Hint<T> for HintedStrResult<T>
Source§impl<T: IntoValue> IntoResult for HintedStrResult<T>
impl<T: IntoValue> IntoResult for HintedStrResult<T>
Source§fn into_result(self, span: Span) -> SourceResult<Value>
fn into_result(self, span: Span) -> SourceResult<Value>
Cast this type into a value.