diff options
Diffstat (limited to 'shared/src/packets.rs')
-rw-r--r-- | shared/src/packets.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/src/packets.rs b/shared/src/packets.rs index 11b5f8a..c03f5e5 100644 --- a/shared/src/packets.rs +++ b/shared/src/packets.rs @@ -51,6 +51,11 @@ impl<T> Ord for Resource<T> { self.0.cmp(&other.0) } } +impl<T> Resource<T> { + pub fn to_generic(&self) -> Resource { + Resource(self.0, PhantomData) + } +} #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct Object(pub u128); |