/// Add a property to this node.
Add a property to this node.
Add a property to this node .
pub fn create_property<T: PropertyFormat>(
        &self,
        name: &str,
        value: T,
    ) -> Result<Property<T>, Error> {
        let block = self.state.lock().create_property(name, value, self.block_index)?;
        Ok(Property::<T> {
            state: self.state.clone(),
            block_index: block.index(),
            phantom: PhantomData,
        })
    }
pub fn create_property < T : PropertyFormat > ( & self , name : & str , value : T , ) -> Result < Property < T > , Error > { let block = self . state . lock ( ) . create_property ( name , value , self . block_index ) ? ; Ok ( Property :: < T > { state : self . state . clone ( ) , block_index : block . index ( ) , phantom : PhantomData , } ) }
Add a property to this node.
Add a property to this node .
&self
name
&str
value
T