pub struct DirectionPattern { /* private fields */ }Expand description
Steps in only one direction until end or grid or the repeat condition is meet.
Implementations§
Trait Implementations§
Source§impl Clone for DirectionPattern
impl Clone for DirectionPattern
Source§fn clone(&self) -> DirectionPattern
fn clone(&self) -> DirectionPattern
Returns a duplicate of the value. Read more
1.0.0 · 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 DirectionPattern
impl Debug for DirectionPattern
Source§impl PartialEq for DirectionPattern
impl PartialEq for DirectionPattern
Source§impl Pattern for DirectionPattern
impl Pattern for DirectionPattern
Source§fn next_action(&mut self) -> Option<Action>
fn next_action(&mut self) -> Option<Action>
Returns the next
Action or None if there are no more Action.Source§fn next_action_peek(&self) -> Option<Action>
fn next_action_peek(&self) -> Option<Action>
Peeks in the next
Action and returns it or None if there is no more Action.impl Copy for DirectionPattern
impl Eq for DirectionPattern
impl StructuralPartialEq for DirectionPattern
Auto Trait Implementations§
impl Freeze for DirectionPattern
impl RefUnwindSafe for DirectionPattern
impl Send for DirectionPattern
impl Sync for DirectionPattern
impl Unpin for DirectionPattern
impl UnwindSafe for DirectionPattern
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