Trait pgn4::VisitorCommon [−][src]
All common methods between Visitor and VisitorMut
Required methods
fn last(&self) -> bool
[src]
Is this hovered over the last quarterturn in the line
fn alternatives(&self) -> usize
[src]
How many alternatives are present on the hovered quarterturn.
fn qturn(&self) -> Option<&QuarterTurn>
[src]
View the currently hovered QuarterTurn if it exists
fn next(self) -> Result<Self, VisitingError>
[src]
Move the visitor one forward
fn into_alternative(self, alt: usize) -> Result<Self, VisitingError>
[src]
Move the visitor into one of the current qturns alternatives. Leaves the visitor at the start of the line without any hovered quarterturn.
Provided methods
fn follow_once<'a>(
self,
partial: &mut PartialPath<'a>,
main: &'a [usize]
) -> Result<Self, VisitingError>
[src]
self,
partial: &mut PartialPath<'a>,
main: &'a [usize]
) -> Result<Self, VisitingError>
Follow one step of a path.
fn follow_path<'a>(
self,
partial: &mut PartialPath<'a>,
path: &'a [usize]
) -> Result<Self, VisitingError>
[src]
self,
partial: &mut PartialPath<'a>,
path: &'a [usize]
) -> Result<Self, VisitingError>
Follow a path.