Struct pgn4::Visitor [−][src]
pub struct Visitor<'a> { /* fields omitted */ }
Expand description
A view into the quarterturns of a pgn4.
Implementations
Trait Implementations
impl<'a> VisitorCommon for Visitor<'a>
[src]
impl<'a> VisitorCommon for Visitor<'a>
[src]fn alternatives(&self) -> usize
[src]
fn alternatives(&self) -> usize
[src]How many alternatives are present on the hovered quarterturn.
fn qturn(&self) -> Option<&QuarterTurn>
[src]
fn qturn(&self) -> Option<&QuarterTurn>
[src]View the currently hovered QuarterTurn if it exists
fn next(self) -> Result<Self, VisitingError>
[src]
fn next(self) -> Result<Self, VisitingError>
[src]Move the visitor one forward
fn into_alternative(self, alt: usize) -> Result<Self, VisitingError>
[src]
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.
fn follow_once<'a>(
self,
partial: &mut PartialPath<'a>,
main: &'a [usize]
) -> Result<Self, VisitingError>
[src]
fn follow_once<'a>(
self,
partial: &mut PartialPath<'a>,
main: &'a [usize]
) -> Result<Self, VisitingError>
[src]Follow one step of a path.
fn follow_path<'a>(
self,
partial: &mut PartialPath<'a>,
path: &'a [usize]
) -> Result<Self, VisitingError>
[src]
fn follow_path<'a>(
self,
partial: &mut PartialPath<'a>,
path: &'a [usize]
) -> Result<Self, VisitingError>
[src]Follow a path.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Visitor<'a>
impl<'a> Send for Visitor<'a>
impl<'a> Sync for Visitor<'a>
impl<'a> Unpin for Visitor<'a>
impl<'a> UnwindSafe for Visitor<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more