[][src]Trait pavo_traits::AsPtr

pub trait AsPtr<T>: AsRef<T> {
    unsafe fn as_ptr(&self) -> *const T { ... }
}

定义将只读引用转化至常量指针的契定。

Provided methods

unsafe fn as_ptr(&self) -> *const T

将当前只读引用转化至常量指针。

Safety

强转指针属于危险操作,请务必确保其安全性。

Loading content...

Implementations on Foreign Types

impl<T, U, '_> AsPtr<U> for &'_ T where
    T: AsPtr<U>,
    T: Sized,
    U: Sized
[src]

Loading content...

Implementors

Loading content...