pub trait IsBody:
Sized
+ Debug
+ Clone
+ 'static {
// Required method
fn body<'tcx, S: UnderOwnerState<'tcx>>(did: RDefId, s: &S) -> Option<Self>;
// Provided method
fn from_mir<'tcx, S: UnderOwnerState<'tcx>>(
_s: &S,
_body: Body<'tcx>,
) -> Option<Self> { ... }
}
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.