Struct defrag::Value
[−]
[src]
pub struct Value<'a, 'mutex: 'a, T: 'mutex> { /* fields omitted */ }
A value which can be used through Deref
When this is dropped, the memory it is referencing is automatically unlocked, which allows it to be defragmented. This object should be dropped as soon as possible to allow for defragmentation to take place.
Trait Implementations
impl<'a, 'mutex: 'a, T: 'mutex> Drop for Value<'a, 'mutex, T>
[src]
impl<'a, 'mutex: 'a, T: 'mutex> Deref for Value<'a, 'mutex, T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<'a, 'mutex: 'a, T: 'mutex> DerefMut for Value<'a, 'mutex, T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value