pub fn push(&mut self, v: T) -> &'a T::Ref {
		let ptr = self.0.push(v);
		// safe because ptr does not live longer than VecOwner
		unsafe { &*ptr }
	}
/// pushes the value to the owner
/// and returns a reference to the inserted value
/// without using the current lifetime
///
/// ```
/// # use push_while_ref::{VecOwner, VecChild};
/// let mut vec = VecOwner::new();
/// let mut vec = vec.child();
/// let v1 = vec.push(Box::new(10));
/// let v2 = vec.push(Box::new(20));
/// assert_eq!(*v1, 10);
/// assert_eq!(*v2, 20);
/// ```
pushes the value to the owner
and returns a reference to the inserted value
without using the current lifetime


pushes the value to the owner and returns a reference to the inserted value without using the current lifetime
pub fn push(&mut self, v: T) -> &'a T::Ref {
		let ptr = self.0.push(v);
		// safe because ptr does not live longer than VecOwner
		unsafe { &*ptr }
	}
pub fn push ( & mut self , v : T ) -> & ' a T :: Ref { let ptr = self . 0 . push ( v ) ; // safe because ptr does not live longer than VecOwner unsafe { & * ptr } }
pushes the value to the owner
and returns a reference to the inserted value
without using the current lifetime
pushes the value to the owner and returns a reference to the inserted value without using the current lifetime
&mut self
v
T
&mut self
v
T
use push_while_ref::{vecowner, vecchild};
None