Struct crossbeam::epoch::Owned [−][src]
pub struct Owned<T> { /* fields omitted */ }
Like Box<T>
: an owned, heap-allocated data value of type T
.
Methods
impl<T> Owned<T>
[src]
impl<T> Owned<T>
pub fn new(t: T) -> Owned<T>
[src]
pub fn new(t: T) -> Owned<T>
Move t
to a new heap allocation.
pub fn into_inner(self) -> T
[src]
pub fn into_inner(self) -> T
Move data out of the owned box, deallocating the box.
Trait Implementations
impl<T: Debug> Debug for Owned<T>
[src]
impl<T: Debug> Debug for Owned<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Deref for Owned<T>
[src]
impl<T> Deref for Owned<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for Owned<T>
[src]
impl<T> DerefMut for Owned<T>