Skip to main content

ToMutPtr

Trait ToMutPtr 

Source
pub trait ToMutPtr {
    type Target: ?Sized;

    // Required method
    fn to_mut_ptr(&self) -> *mut Self::Target;
}
Expand description

Extension trait for references to obtain a mutable raw pointer.

Required Associated Types§

Source

type Target: ?Sized

The target type of the pointer.

Required Methods§

Source

fn to_mut_ptr(&self) -> *mut Self::Target

Casts the reference to a mutable raw pointer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: ?Sized> ToMutPtr for T