pub fn remove_cube(&mut self, meta: CubeMeta) -> Result<CubeId, ()> {
        let router = meta.router;
        let vec = self.ensured_router(router);
        let idx = if meta.idx >= vec.len() {
            return Err(());
        } else {
            meta.idx
        };
        Ok(vec.remove(idx))
    }
/// removes a cube within a safe idx
removes a cube within a safe idx
removes a cube within a safe idx
pub fn remove_cube(&mut self, meta: CubeMeta) -> Result<CubeId, ()> {
        let router = meta.router;
        let vec = self.ensured_router(router);
        let idx = if meta.idx >= vec.len() {
            return Err(());
        } else {
            meta.idx
        };
        Ok(vec.remove(idx))
    }
pub fn remove_cube ( & mut self , meta : CubeMeta ) -> Result < CubeId , ( ) > { let router = meta . router ; let vec = self . ensured_router ( router ) ; let idx = if meta . idx >= vec . len ( ) { return Err ( ( ) ) ; } else { meta . idx } ; Ok ( vec . remove ( idx ) ) }
removes a cube within a safe idx
removes a cube within a safe idx
&mut self
meta
CubeMeta
&mut self
meta
CubeMeta