pub struct Computer {
pc: usize,
base: usize,
code: Vec<usize>,
input: VecDeque<usize>,
}
Fields§
§pc: usize
§base: usize
§code: Vec<usize>
§input: VecDeque<usize>
Implementations§
source§impl Computer
impl Computer
pub fn new(input: &[i64]) -> Computer
pub fn input(&mut self, value: i64)
pub fn input_ascii(&mut self, ascii: &str)
Auto Trait Implementations§
impl Freeze for Computer
impl RefUnwindSafe for Computer
impl Send for Computer
impl Sync for Computer
impl Unpin for Computer
impl UnwindSafe for Computer
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