Struct ami::Parent [−][src]
pub struct Parent<T, U: PseudoDrop<T = T>> { /* fields omitted */ }
A structure that has ownership on Child
s
Methods
impl<T, U> Parent<T, U> where
U: PseudoDrop<T = T>,
[src]
impl<T, U> Parent<T, U> where
U: PseudoDrop<T = T>,
pub fn new(data: T) -> Self
[src]
pub fn new(data: T) -> Self
Create a new Parent
pub fn data<'a>(&'a self) -> &'a mut T
[src]
pub fn data<'a>(&'a self) -> &'a mut T
Get the parent data.
Trait Implementations
impl<T, U> Drop for Parent<T, U> where
U: PseudoDrop<T = T>,
[src]
impl<T, U> Drop for Parent<T, U> where
U: PseudoDrop<T = T>,