vm_resource

Trait IntoResource

Source
pub trait IntoResource<K: ResourceKind> {
    // Required method
    fn into_resource(self) -> Resource<K>;
}
Expand description

Trait for converting resources into opaque Resources.

Required Methods§

Source

fn into_resource(self) -> Resource<K>

Converts self into a Resource.

Implementors§

Source§

impl<T: 'static + ResourceId<K> + MeshPayload + Send, K: ResourceKind> IntoResource<K> for T