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§
Required Methods§
Sourcefn get_ptr_size(&self) -> &Self::Ptr
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".