pub fn fill(&self, t: T) -> Result<(), T> {
        unsafe {
            let slot = self.inner.get();
            if (*slot).is_none() {
                *slot = Some(t);
                Ok(())
            } else {
                Err(t)
            }
        }
    }
/// Put a value into this cell.
///
/// This function will fail if the cell has already been filled.
Put a value into this cell.
This function will fail if the cell has already been filled.
Put a value into this cell . This function will fail if the cell has already been filled .
pub fn fill(&self, t: T) -> Result<(), T> {
        unsafe {
            let slot = self.inner.get();
            if (*slot).is_none() {
                *slot = Some(t);
                Ok(())
            } else {
                Err(t)
            }
        }
    }
pub fn fill ( & self , t : T ) -> Result < ( ) , T > { unsafe { let slot = self . inner . get ( ) ; if ( * slot ) . is_none ( ) { * slot = Some ( t ) ; Ok ( ( ) ) } else { Err ( t ) } } }
Put a value into this cell.
Put a value into this cell .
&self
t
T
&self
t
T