Struct track8_program::I [−][src]
pub struct I { pub program: usize, pub head_pos: usize, pub tape: Vec<Vec<C>>, pub state: S, pub stack: Vec<C>, pub max_stack: usize, pub max_programs: usize, }
Fields
program: usize
head_pos: usize
tape: Vec<Vec<C>>
state: S
stack: Vec<C>
max_stack: usize
max_programs: usize
Methods
impl I
[src]
impl I
pub fn new() -> I
[src]
pub fn new() -> I
pub fn rd<R: Read>(&mut self, r: R)
[src]
pub fn rd<R: Read>(&mut self, r: R)
pub fn sp(&mut self) -> C
[src]
pub fn sp(&mut self) -> C
pub fn step(&mut self) -> R
[src]
pub fn step(&mut self) -> R
Trait Implementations
impl Clone for I
[src]
impl Clone for I
fn clone(&self) -> I
[src]
fn clone(&self) -> I
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for I
[src]
impl Debug for I
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialOrd for I
[src]
impl PartialOrd for I
fn partial_cmp(&self, other: &I) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &I) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &I) -> bool
[src]
fn lt(&self, other: &I) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &I) -> bool
[src]
fn le(&self, other: &I) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &I) -> bool
[src]
fn gt(&self, other: &I) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &I) -> bool
[src]
fn ge(&self, other: &I) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for I
[src]
impl Ord for I
fn cmp(&self, other: &I) -> Ordering
[src]
fn cmp(&self, other: &I) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for I
[src]
impl PartialEq for I
fn eq(&self, other: &I) -> bool
[src]
fn eq(&self, other: &I) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &I) -> bool
[src]
fn ne(&self, other: &I) -> bool
This method tests for !=
.
impl Eq for I
[src]
impl Eq for I
impl Default for I
[src]
impl Default for I