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§
Sourcespec fn may_unwind(&self) -> bool
spec fn may_unwind(&self) -> bool
Whether branch may unwind for this value.
Sourcespec fn branch_model_is_valid() -> bool
spec fn branch_model_is_valid() -> bool
The result of branch matches its functional spec
Sourcespec fn branch_model(self) -> ControlFlow<Self::Residual, Self::Output>where
Self: Sized,
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".