pub struct System { /* private fields */ }
Expand description
A system.
Implementations§
Source§impl System
impl System
Sourcepub fn open<T: AsRef<Path>>(path: T) -> Result<System>
pub fn open<T: AsRef<Path>>(path: T) -> Result<System>
Load a system from a file.
The file is a configuration file of McPAT.
Sourcepub fn compute<'l>(&'l self) -> Result<Processor<'l>>
pub fn compute<'l>(&'l self) -> Result<Processor<'l>>
Perform optimization and produce an instance of the system.
Sourcepub fn raw(&self) -> &root_system
pub fn raw(&self) -> &root_system
Return the raw specification of the system.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl !Send for System
impl !Sync for System
impl Unpin for System
impl UnwindSafe for System
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more