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) -> SelfCreate a new Child for the Parent.
pub fn parent<'a>(&'a self) -> &'a T[src]
pub fn parent<'a>(&'a self) -> &'a TGet 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 TGet the Parent's data (mutable).
pub fn data<'a>(&'a self) -> &'a U[src]
pub fn data<'a>(&'a self) -> &'a UGet 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 UGet the Child's data (mutable).
pub fn id(&self) -> Id[src]
pub fn id(&self) -> IdGet 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>,