pub trait AsRefSpecImpl<T: PointeeSized>: PointeeSized + AsRef<T> {
// Required methods
exec fn as_ref_spec(&self) -> &T;
exec fn obeys_as_ref_spec() -> bool;
}Required Methods§
Sourceexec fn as_ref_spec(&self) -> &T
exec fn as_ref_spec(&self) -> &T
Sourceexec fn obeys_as_ref_spec() -> bool
exec fn obeys_as_ref_spec() -> bool
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.