pub trait Pointer<T: ?Sized>:
Primitive
+ Copy
+ Debug
+ Sized {
// Required methods
fn ptr_type() -> Mutability;
fn cast_ptr<U: Sized, P: Pointer<U>>(self) -> P
where Self: Sized;
fn cast_int<I: Integer>(self) -> I
where T: Sized;
}Required Methods§
fn ptr_type() -> Mutability
fn cast_ptr<U: Sized, P: Pointer<U>>(self) -> Pwhere
Self: Sized,
fn cast_int<I: Integer>(self) -> Iwhere
T: Sized,
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.