pub struct Tail<S: Symbol> {
pub state: State,
pub symbol: S,
pub movement: Move,
}
Expand description
Tail is the second part of crate::instruction::Instruction
and is used as a container for the State
, the Symbol
, and the Move
.
Tail
fields doesn’t needs in control or protection so they are public.
Fields§
§state: State
State
which is a wrapper around usize.
It’s very hard (impossible) to reach the limit manually.
symbol: S
Any struct or object which implements Symbol
trait.
movement: Move
Move
enum variant (Move::Left
, Move::Right
, Move::None
)
which is used by crate::state::Configuration
.
Implementations§
Trait Implementations§
impl<S: Eq + Symbol> Eq for Tail<S>
impl<S: Symbol> StructuralPartialEq for Tail<S>
Auto Trait Implementations§
impl<S> Freeze for Tail<S>where
S: Freeze,
impl<S> RefUnwindSafe for Tail<S>where
S: RefUnwindSafe,
impl<S> Send for Tail<S>where
S: Send,
impl<S> Sync for Tail<S>where
S: Sync,
impl<S> Unpin for Tail<S>where
S: Unpin,
impl<S> UnwindSafe for Tail<S>where
S: 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