[go: up one dir, main page]

Trait glib::translate::Ptr

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

A pointer

Required Methods§

source

fn is_null(&self) -> bool

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

fn is_null(&self) -> bool

source§

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

source§

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

source§

fn is_null(&self) -> bool

source§

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

Implementors§