pub fn state_path(&self, path: &SPPath) -> Option<StatePath> {
        self.index.get(path).map(|index| StatePath {
            path: path.clone(),
            index: *index,
            state_id: self.id,
        })
    }
/// Returns the index of a variable to be used for faster access. Cash this and compare with
/// the id of the state if it is still valid
Returns the index of a variable to be used for faster access. Cash this and compare with
the id of the state if it is still valid
Returns the index of a variable to be used for faster access . Cash this and compare with the id of the state if it is still valid
pub fn state_path(&self, path: &SPPath) -> Option<StatePath> {
        self.index.get(path).map(|index| StatePath {
            path: path.clone(),
            index: *index,
            state_id: self.id,
        })
    }
pub fn state_path ( & self , path : & SPPath ) -> Option < StatePath > { self . index . get ( path ) . map ( | index | StatePath { path : path . clone ( ) , index : * index , state_id : self . id , } ) }
Returns the index of a variable to be used for faster access.
Returns the index of a variable to be used for faster access .
&self
path
&SPPath