Skip to main content

pebble/assets/
handle.rs

1use crate::prelude::RawAssetHandle;
2
3pub struct Handle<T> {
4    pub id: RawAssetHandle,
5    _marker: std::marker::PhantomData<T>,
6}
7
8impl<T> Handle<T> {
9    pub fn new(id: RawAssetHandle) -> Self {
10        Self {
11            id,
12            _marker: std::marker::PhantomData,
13        }
14    }
15}
16impl<T> Clone for Handle<T> {
17    fn clone(&self) -> Self {
18        *self
19    }
20}
21impl<T> Copy for Handle<T> {}