Trait IntoResult

Source
pub trait IntoResult {
    // Required method
    fn into_result(self, span: Span) -> SourceResult<Value>;
}
Expand description

Cast a Rust type or result into a SourceResult<Value>.

Converts T, StrResult<T>, or SourceResult<T> into SourceResult<Value> by Ok-wrapping or adding span information.

Required Methods§

Source

fn into_result(self, span: Span) -> SourceResult<Value>

Cast this type into a value.

Implementors§