Skip to main content

FromResidualSpecImpl

Trait FromResidualSpecImpl 

Source
pub trait FromResidualSpecImpl<R>: FromResidual<R> {
    // Required method
    exec fn may_unwind(residual: &R) -> bool;
}

Required Methods§

Source

exec fn may_unwind(residual: &R) -> bool

Whether converting this residual may unwind.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<B, C> FromResidualSpecImpl<ControlFlow<B, !>> for ControlFlow<B, C>

Source§

open spec fn may_unwind(residual: &ControlFlow<B, Infallible>) -> bool

{ false }
Source§

impl<T, E, F: From<E>> FromResidualSpecImpl<Result<!, E>> for Result<T, F>

Source§

open spec fn may_unwind(residual: &Result<Infallible, E>) -> bool

{ true }
Source§

impl<T> FromResidualSpecImpl<Option<!>> for Option<T>

Source§

open spec fn may_unwind(residual: &Option<Infallible>) -> bool

{ false }

Implementors§