pub enum TurtleMode {
Flat,
Space,
}Expand description
Which turtle walks the grammar: [generator] turtle (ADR-0258).
Flat is the plane walk above, and the default, so a preset that does not
name a turtle walks exactly what it always did. Space carries a full
orientation frame and reads the five space symbols; in Flat they stay
inert grammar variables.
Variants§
Flat
The plane turtle: x, y and one heading.
Space
The space turtle: a position and a heading, left and up frame.
Implementations§
Trait Implementations§
Source§impl Clone for TurtleMode
impl Clone for TurtleMode
Source§fn clone(&self) -> TurtleMode
fn clone(&self) -> TurtleMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TurtleMode
impl Debug for TurtleMode
Source§impl Default for TurtleMode
impl Default for TurtleMode
Source§fn default() -> TurtleMode
fn default() -> TurtleMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for TurtleMode
impl PartialEq for TurtleMode
Source§fn eq(&self, other: &TurtleMode) -> bool
fn eq(&self, other: &TurtleMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TurtleMode
impl Eq for TurtleMode
impl StructuralPartialEq for TurtleMode
Auto Trait Implementations§
impl Freeze for TurtleMode
impl RefUnwindSafe for TurtleMode
impl Send for TurtleMode
impl Sync for TurtleMode
impl Unpin for TurtleMode
impl UnsafeUnpin for TurtleMode
impl UnwindSafe for TurtleMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.