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