Skip to main content

Pointer

Trait Pointer 

Source
pub unsafe trait Pointer: Pointer { }
Expand description

This trait is empty declaration of ::core::fmt::Pointer to be used with newer_type::implement.

§Example

#[implement(newer_type_std::fmt::Pointer)]
struct MyStruct {
    slot: Box<u8>
}

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