From 9f16507564354422b64e437e547d8403b22b70c7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 27 Mar 2025 14:38:31 +0100 Subject: lay a foundation for subresource listings --- shared/src/packets.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shared/src/packets.rs') 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 Ord for Resource { self.0.cmp(&other.0) } } +impl Resource { + pub fn to_generic(&self) -> Resource { + Resource(self.0, PhantomData) + } +} #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct Object(pub u128); -- cgit v1.2.3-70-g09d2