pub struct Tape { /* private fields */ }Implementations§
Source§impl Tape
impl Tape
pub fn read(&self) -> char
pub fn write(&mut self, symbol: char)
pub fn move_left(&mut self)
pub fn move_right(&mut self)
pub fn shift_left(&mut self)
pub fn shift_right(&mut self)
pub fn initialize(&mut self, input: String)
pub fn memory(&self) -> usize
pub fn show_output(&self)
pub fn show_tape(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tape
impl RefUnwindSafe for Tape
impl Send for Tape
impl Sync for Tape
impl Unpin for Tape
impl UnsafeUnpin for Tape
impl UnwindSafe for Tape
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