Skip to main content

TrySpec

Trait TrySpec 

Source
pub trait TrySpec: FromResidual<Self::Residual> + Try {
    // Required methods
    spec fn may_unwind(&self) -> bool;
    spec fn branch_model_is_valid() -> bool;
    spec fn branch_model(self) -> ControlFlow<Self::Residual, Self::Output>
       where Self: Sized;
}

Required Methods§

Source

spec fn may_unwind(&self) -> bool

Whether branch may unwind for this value.

Source

spec fn branch_model_is_valid() -> bool

The result of branch matches its functional spec

Source

spec fn branch_model(self) -> ControlFlow<Self::Residual, Self::Output>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<VERUS_SPEC__A: Try + ?Sized> TrySpec for VERUS_SPEC__A