Skip to main content

Deref

Trait Deref 

Source
pub unsafe trait Deref: Deref { }
Expand description

This trait is empty declaration of ::core::ops::Deref to be used with newer_type::implement.

§Example

#[implement(newer_type_std::ops::Deref)]
struct MyStruct {
    slot: Box<usize>
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§