pub trait ExTry: FromResidual<Self::Residual> {
type ExternalTraitSpecificationFor: Try;
type Output;
type Residual: Residual<Self::Output>;
// 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;
exec fn branch(self) -> ret : ControlFlow<Self::Residual, Self::Output>
where Self: Sized;
exec fn from_output(output: Self::Output) -> Self
where Self: Sized;
}Expand description
The result of ? need not have a canonical representation.
Required Associated Types§
type ExternalTraitSpecificationFor: Try
type Output
type Residual: Residual<Self::Output>
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,
Sourceexec fn branch(self) -> ret : ControlFlow<Self::Residual, Self::Output>where
Self: Sized,
exec fn branch(self) -> ret : ControlFlow<Self::Residual, Self::Output>where
Self: Sized,
ensures
Self::branch_model_is_valid() ==> ret == Self::branch_model(self),Sourceexec fn from_output(output: Self::Output) -> Selfwhere
Self: Sized,
exec fn from_output(output: Self::Output) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".