Trait glib::translate::Ptr

source ·
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§

source

fn is_null(&self) -> bool

source

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

source

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

Implementations on Foreign Types§

source§

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

source§

fn is_null(&self) -> bool

source§

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

source§

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

source§

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

source§

fn is_null(&self) -> bool

source§

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

source§

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

Implementors§