Trait druid::piet::cairo::glib::translate::Ptr

pub trait Ptr: Copy + 'static {
    // Required methods
    fn is_null(&self) -> bool;
    fn from<X>(ptr: *mut X) -> Self;
    fn to<X>(self) -> *mut X;
}
Expand description

A pointer

Required Methods§

fn is_null(&self) -> bool

fn from<X>(ptr: *mut X) -> Self

fn to<X>(self) -> *mut X

Implementations on Foreign Types§

§

impl<T> Ptr for *const Twhere T: 'static,

§

fn is_null(&self) -> bool

§

fn from<X>(ptr: *mut X) -> *const T

§

fn to<X>(self) -> *mut X

§

impl<T> Ptr for *mut Twhere T: 'static,

§

fn is_null(&self) -> bool

§

fn from<X>(ptr: *mut X) -> *mut T

§

fn to<X>(self) -> *mut X

Implementors§