/// Creates a new Memory struct.
///
/// # Arguments
///
/// * `p` - The page size in bits.
/// * `m` - The physical address size in bits.
/// * `n` - The virtual address size in bits.
///
/// # Example
///
/// ```
/// use mmu::hardware;
/// // create a memory model with a (p, m, n) = (4, 12, 14).
/// let mm = hardware::Memory::new(4, 12, 14);
/// ```
Creates a new Memory struct.
Creates a new Memory struct .
pub fn new(p: u8, m: u8, n: u8) -> Memory {
        Memory {
            p: p,
            m: m,
            n: n,
        }
    }
pub fn new ( p : u8 , m : u8 , n : u8 ) -> Memory { Memory { p : p , m : m , n : n , } }
Creates a new Memory struct.
Creates a new Memory struct .
p
u8
m
u8
n
u8
example
```
use mmu::hardware;
create a memory model with a (p, m, n) = (4, 12, 14).
` ` ` use mmu :: hardware ; create a memory model with a ( p m n ) = ( 4 12 14 ) .