pub struct Head<S: Symbol> {
pub state: State,
pub symbol: S,
}
Expand description
Head
is the first part of crate::instruction::Instruction
and is used as a container for the State
and the Symbol
.
Head
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.
Implementations§
Trait Implementations§
impl<S: Eq + Symbol> Eq for Head<S>
impl<S: Symbol> StructuralPartialEq for Head<S>
Auto Trait Implementations§
impl<S> Freeze for Head<S>where
S: Freeze,
impl<S> RefUnwindSafe for Head<S>where
S: RefUnwindSafe,
impl<S> Send for Head<S>where
S: Send,
impl<S> Sync for Head<S>where
S: Sync,
impl<S> Unpin for Head<S>where
S: Unpin,
impl<S> UnwindSafe for Head<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