Skip to main content

AsRefSpecImpl

Trait AsRefSpecImpl 

Source
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§

Source

exec fn as_ref_spec(&self) -> &T

Source

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.

Implementors§