pub fn projection(&self) -> StateProjection {
        let s: Vec<(&SPPath, &StateValue)> = self
            .index
            .iter()
            .map(|(key, i)| (key, &self.values[*i]))
            .collect();

        StateProjection {
            state: s,
            id: self.id,
        }
    }
/// Get a projection of the state
Get a projection of the state
Get a projection of the state
pub fn projection(&self) -> StateProjection {
        let s: Vec<(&SPPath, &StateValue)> = self
            .index
            .iter()
            .map(|(key, i)| (key, &self.values[*i]))
            .collect();
        StateProjection {
            state: s,
            id: self.id,
        }
    }
pub fn projection ( & self ) -> StateProjection { let s : Vec < ( & SPPath , & StateValue ) > = self . index . iter ( ) . map ( | ( key , i ) | ( key , & self . values [ * i ] ) ) . collect ( ) ; StateProjection { state : s , id : self . id , } }
Get a projection of the state
Get a projection of the state
&self