[−][src]Trait lock_free_freelist::Reusable
This trait is required by Deref Target of a type implementing SmartPointer.
When a free list reuses an element, the old contents are still there.
The definition of set_new_val
should use the new instance of type Self
to set it to new contents.
#[derive(Reusable)]
defines
set_new_val
to just perform a std::mem::replace to set it to new contents
Required methods
pub fn set_new_val(&mut self, other: Self)
[src]
Contents of other
should be assigned to
self
in whatever way the implementer finds efficient.