pub fn with_item(value: &X) -> Result<Self> {
        let mut leaf = false.write_to_new_cell()?;
        value.write_to(&mut leaf)?;
        Ok(Self {
            data: leaf.into_cell()?.into(),
            phantom: PhantomData::<X>,
        })
    }
/// Constructs new instance and put item
Constructs new instance and put item
Constructs new instance and put item
pub fn with_item(value: &X) -> Result<Self> {
        let mut leaf = false.write_to_new_cell()?;
        value.write_to(&mut leaf)?;
        Ok(Self {
            data: leaf.into_cell()?.into(),
            phantom: PhantomData::<X>,
        })
    }
pub fn with_item ( value : & X ) -> Result < Self > { let mut leaf = false . write_to_new_cell ( ) ? ; value . write_to ( & mut leaf ) ? ; Ok ( Self { data : leaf . into_cell ( ) ? . into ( ) , phantom : PhantomData :: < X > , } ) }
Constructs new instance and put item
Constructs new instance and put item
value
&X
value
&X