/// Allocate a new NODE object. Called through Inspector.
Allocate a new NODE object. Called through Inspector.
Allocate a new NODE object . Called through Inspector .
pub(in crate::vmo) fn allocate(
        state: Arc<Mutex<State>>,
        name: &str,
        parent_index: u32,
    ) -> Result<Self, Error> {
        let block = state.lock().create_node(name, parent_index)?;
        Ok(Node { state: state.clone(), block_index: block.index() })
    }
pub ( in crate :: vmo ) fn allocate ( state : Arc < Mutex < State > > , name : & str , parent_index : u32 , ) -> Result < Self , Error > { let block = state . lock ( ) . create_node ( name , parent_index ) ? ; Ok ( Node { state : state . clone ( ) , block_index : block . index ( ) } ) }
Allocate a new NODE object.
Allocate a new NODE object .
state
Arc<Mutex<State>>
name
&str
parent_index
u32