Trait AsPtr

Source
pub trait AsPtr<T> {
    // Required methods
    fn as_ptr_mut(&mut self) -> *mut T;
    fn as_ptr(&self) -> *const T;
}
Expand description

use for Vec<T>

Required Methods§

Source

fn as_ptr_mut(&mut self) -> *mut T

&mut self[0] as *mut T

Source

fn as_ptr(&self) -> *const T

&self[0] as *const T

Implementations on Foreign Types§

Source§

impl<T> AsPtr<T> for Vec<T>

Source§

fn as_ptr_mut(&mut self) -> *mut T

&mut self[0] as *mut T

Source§

fn as_ptr(&self) -> *const T

&self[0] as *const T

Implementors§