Add TaggedPtr::set_tag
This commit is contained in:
parent
6f64ae3fbc
commit
5e4577ec65
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ where
|
||||||
pub fn tag(&self) -> T {
|
pub fn tag(&self) -> T {
|
||||||
self.raw.tag()
|
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>
|
impl<P, T, const CP: bool> Clone for TaggedPtr<P, T, CP>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue