Lines Matching refs:Memory
15 pub struct Memory { struct
26 impl Memory { implementation
28 pub fn new(lanes: u32, lane_length: u32) -> Memory { in new() argument
33 Memory { rows, cols, blocks } in new()
38 pub fn as_lanes_mut(&mut self) -> Vec<&mut Memory> { in as_lanes_mut() argument
39 let ptr: *mut Memory = self; in as_lanes_mut()
48 impl Debug for Memory { implementation
54 impl Index<u32> for Memory { implementation
61 impl Index<u64> for Memory { implementation
68 impl Index<(u32, u32)> for Memory { implementation
76 impl IndexMut<u32> for Memory { implementation
82 impl IndexMut<u64> for Memory { implementation
88 impl IndexMut<(u32, u32)> for Memory { implementation
98 use crate::memory::Memory;
104 let memory = Memory::new(lanes, lane_length); in new_returns_correct_instance()
113 let mut memory = Memory::new(4, 128); in as_lanes_mut_returns_correct_vec()