Trait gfx::Typed []

pub trait Typed {
    type Raw;
    fn new(raw: Self::Raw) -> Self;
    fn raw(&self) -> &Self::Raw;
}

A service trait used to get the raw data out of strong types. Not meant for public use.

Associated Types

type Raw

The raw type behind the phantom.

Required Methods

fn new(raw: Self::Raw) -> Self

Crete a new phantom from the raw type.

fn raw(&self) -> &Self::Raw

Get an internal reference to the raw type.

Implementors