pub struct Config<T, const S: usize> {
pub cell_size: T,
pub stack_depth: T,
pub memory: AllocatedSection<T>,
pub stack: AllocatedSection<T>,
pub register: AllocatedSection<T>,
}Expand description
Config for RAM machine
Fields§
§cell_size: TSize of a memory cell
stack_depth: TStack depth
memory: AllocatedSection<T>Base address of memory
stack: AllocatedSection<T>Stack base address
register: AllocatedSection<T>Register base address
Implementations§
Trait Implementations§
impl<T: Copy, const S: usize> Copy for Config<T, S>
Auto Trait Implementations§
impl<T, const S: usize> Freeze for Config<T, S>where
T: Freeze,
impl<T, const S: usize> RefUnwindSafe for Config<T, S>where
T: RefUnwindSafe,
impl<T, const S: usize> Send for Config<T, S>where
T: Send,
impl<T, const S: usize> Sync for Config<T, S>where
T: Sync,
impl<T, const S: usize> Unpin for Config<T, S>where
T: Unpin,
impl<T, const S: usize> UnwindSafe for Config<T, S>where
T: UnwindSafe,
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