pub fn read(&self) -> T
    where
        T: std::clone::Clone,
    {
        self.as_ref().clone()
    }
/// Returns a clone of the underlying data
/// 
/// # Examples
///
/// ```
/// use corundum::alloc::heap::*;
///
/// Heap::transaction(|j| {
///     let cell = Pbox::new(PRefCell::new(5), j);
///     
///     assert_eq!(cell.read(), 5);
/// }).unwrap();
/// ```
Returns a clone of the underlying data
Returns a clone of the underlying data
pub fn read(&self) -> T
    where
        T: std::clone::Clone,
    {
        self.as_ref().clone()
    }
pub fn read ( & self ) -> T where T : std :: clone :: Clone , { self . as_ref ( ) . clone ( ) }
Returns a clone of the underlying data
Returns a clone of the underlying data
&self
examples


:transaction(|j| {
let cell = Pbox::new(PRefCell::new(5), j).


: transaction ( |j| { let cell = Pbox :: new ( PRefCell :: new ( 5 ) j ) .