Skip to main content

GetPtrSize

Trait GetPtrSize 

Source
pub trait GetPtrSize {
    type Ptr: PtrSize;

    // Required method
    fn get_ptr_size(&self) -> &Self::Ptr;
}
Expand description

A trait to abstract over various types that contain a P: PtrSize.

Required Associated Types§

Source

type Ptr: PtrSize

The type that implements PtrSize.

Required Methods§

Source

fn get_ptr_size(&self) -> &Self::Ptr

Get a &P where P: PtrSize.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§