pub trait SExpect: Sized {
type Output;
// Required method
fn s_expect<'tcx, S: BaseState<'tcx>>(
self,
s: &S,
message: &str,
) -> Self::Output;
// Provided method
fn s_unwrap<'tcx, S: BaseState<'tcx>>(self, s: &S) -> Self::Output { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.