extern crate froggy; fn main() { let mut storage: froggy::Storage = [5 as i32, 7, 4, 6, 7].iter().cloned().collect(); println!("Initial array:"); for value in storage.iter() { println!("Value {}", *value); } let ptr = { let item = storage.iter().find(|v| **v == 4).unwrap(); storage.pin(&item) }; storage[&ptr] = 350 as i32; println!("Array after change:"); for value in &storage { println!("Value {}", *value); } }