pub fn collect_ptrs(&mut self, raw_ptrs: Vec<u32>) -> Result<u32, ExternalsError> {
        info!("associating pointers: {:?}", raw_ptrs);
        if raw_ptrs.iter().all(|x| self.ptrs.contains_key(&x)) {
            self.ptr_collections.insert(raw_ptrs[0], raw_ptrs.clone());
            Ok(raw_ptrs[0])
        } else {
            Err(ExternalsError::from(
                "Attempting to create a ptr collection with nonexistant pointers",
            ))
        }
    }
/// Takes a list of pointers and associates them,
/// effectively creating a list
///
/// Returns a result either containing the raw value
/// of the first pointer in the list or an externals
/// error
Takes a list of pointers and associates them,
effectively creating a list

Returns a result either containing the raw value
of the first pointer in the list or an externals
error
Takes a list of pointers and associates them effectively creating a list Returns a result either containing the raw value of the first pointer in the list or an externals error
pub fn collect_ptrs(&mut self, raw_ptrs: Vec<u32>) -> Result<u32, ExternalsError> {
        info!("associating pointers: {:?}", raw_ptrs);
        if raw_ptrs.iter().all(|x| self.ptrs.contains_key(&x)) {
            self.ptr_collections.insert(raw_ptrs[0], raw_ptrs.clone());
            Ok(raw_ptrs[0])
        } else {
            Err(ExternalsError::from(
                "Attempting to create a ptr collection with nonexistant pointers",
            ))
        }
    }
pub fn collect_ptrs ( & mut self , raw_ptrs : Vec < u32 > ) -> Result < u32 , ExternalsError > { info ! ( " " raw_ptrs ) ; if raw_ptrs . iter ( ) . all ( | x | self . ptrs . contains_key ( & x ) ) { self . ptr_collections . insert ( raw_ptrs [ 0 ] , raw_ptrs . clone ( ) ) ; Ok ( raw_ptrs [ 0 ] ) } else { Err ( ExternalsError :: from ( " " , ) ) } }
Takes a list of pointers and associates them,
effectively creating a list
Takes a list of pointers and associates them effectively creating a list
&mut self
raw_ptrs
Vec<u32>
&mut self
raw_ptrs
Vec<u32>