Trait Resource

Source
pub trait Resource: 'static {
    type Value: ?Sized;

    // Required method
    fn as_ptr(&self) -> *const Self::Value;
}

Required Associated Types§

Required Methods§

Source

fn as_ptr(&self) -> *const Self::Value

Implementations on Foreign Types§

Source§

impl<T: 'static + ?Sized> Resource for Box<T>

Source§

type Value = T

Source§

fn as_ptr(&self) -> *const Self::Value

Implementors§