Trait FSNewType

Source
pub trait FSNewType {
    type Inner;

    // Required methods
    fn from_ptr(ptr: Self::Inner) -> Self;
    fn as_ptr(&self) -> Self::Inner;
}

Required Associated Types§

Required Methods§

Source

fn from_ptr(ptr: Self::Inner) -> Self

Source

fn as_ptr(&self) -> Self::Inner

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§