auto_error_into

Attribute Macro auto_error_into 

Source
#[auto_error_into]
Expand description

Wraps a function that returns a Result<T, E> in such a way that will always return the T type, relying on an Into<T> implemetation to exist for the E type.

ยงRemarks

Use #[auto_error_into(force_inline)] to force the wrapped function to be inlined. This will only work on a subset of functions, and will never work on methods.