[][src]Trait ohm::resources::Resource

pub trait Resource<B: Backend> {
type Plan: Hash + Eq + Clone;
    fn create(factory: &mut Factory<B>, plan: &Self::Plan) -> Self;
fn destroy(self, factory: &mut Factory<B>); }

Associated Types

type Plan: Hash + Eq + Clone

Loading content...

Required methods

fn create(factory: &mut Factory<B>, plan: &Self::Plan) -> Self

fn destroy(self, factory: &mut Factory<B>)

Loading content...

Implementors

impl<B: Backend> Resource<B> for Image<B>[src]

type Plan = ImagePlan

impl<B: Backend> Resource<B> for Buffer<B>[src]

type Plan = BufferPlan

Loading content...