Skip to main content

AsRefSpec

Trait AsRefSpec 

Source
pub trait AsRefSpec<T: PointeeSized>: PointeeSized + AsRef<T> {
    // Required methods
    spec fn as_ref_spec(&self) -> &T;
    spec fn obeys_as_ref_spec() -> bool;
}

Required Methods§

Source

spec fn as_ref_spec(&self) -> &T

Source

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.

Implementors§

Source§

impl<T: PointeeSized, VERUS_SPEC__A: AsRef<T> + PointeeSized> AsRefSpec<T> for VERUS_SPEC__A