Skip to main content

AsPtr

Trait AsPtr 

Source
pub trait AsPtr {
    // Provided methods
    fn as_ptr(&self) -> *const u8 { ... }
    fn as_mut_ptr(&mut self) -> *mut u8 { ... }
}

Provided Methods§

Source

fn as_ptr(&self) -> *const u8

Source

fn as_mut_ptr(&mut self) -> *mut u8

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsPtr for &[u8]

Source§

impl AsPtr for [u8]

Implementors§