pub enum Move {
Left,
Right,
None,
}
Expand description
Move is a part of the crate::instruction::Tail
and it’s used for
tape shift direction determining by crate::state::Configuration
.
For any others structs direction value have no matter.
Turing Machine RS can works only with 1 dimension tape. That’s why
Move
enumeration contains two directions variant:
Move::Left
, Move::Right
.
Istead of using Option
, this enumeration provides one more
variant - Move::None
.
Variants§
Trait Implementations§
impl Copy for Move
impl Eq for Move
impl StructuralPartialEq for Move
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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