1
Fork 0

Add TaggedPtr::set_tag

This commit is contained in:
Maybe Waffle 2023-04-12 12:35:43 +00:00
parent 6f64ae3fbc
commit 5e4577ec65

View file

@ -34,6 +34,10 @@ where
pub fn tag(&self) -> T {
self.raw.tag()
}
pub fn set_tag(&mut self, tag: T) {
self.raw.set_tag(tag)
}
}
impl<P, T, const CP: bool> Clone for TaggedPtr<P, T, CP>