pub trait ExAsRef<T: PointeeSized>: PointeeSized {
type ExternalTraitSpecificationFor: AsRef<T>;
// Required methods
spec fn as_ref_spec(&self) -> &T;
spec fn obeys_as_ref_spec() -> bool;
exec fn as_ref(&self) -> r : &T;
}Required Associated Types§
type ExternalTraitSpecificationFor: AsRef<T>
Required Methods§
Sourcespec fn as_ref_spec(&self) -> &T
spec fn as_ref_spec(&self) -> &T
Sourcespec fn obeys_as_ref_spec() -> bool
spec 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.