pub enum DiagonalDirection {
TopLeftToBottomRight,
TopRightToBottomLeft,
BottomLeftToTopRight,
BottomRightToTopLeft,
}Expand description
Direction variants for diagonal sweep patterns.
Variants§
TopLeftToBottomRight
Sweeps diagonally from top-left corner to bottom-right corner
TopRightToBottomLeft
Sweeps diagonally from top-right corner to bottom-left corner
BottomLeftToTopRight
Sweeps diagonally from bottom-left corner to top-right corner
BottomRightToTopLeft
Sweeps diagonally from bottom-right corner to top-left corner
Trait Implementations§
Source§impl Clone for DiagonalDirection
impl Clone for DiagonalDirection
Source§fn clone(&self) -> DiagonalDirection
fn clone(&self) -> DiagonalDirection
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 DiagonalDirection
impl Debug for DiagonalDirection
Source§impl DslFormat for DiagonalDirection
Available on crate feature dsl only.
impl DslFormat for DiagonalDirection
Available on crate feature
dsl only.Source§fn dsl_format(&self) -> CompactString
fn dsl_format(&self) -> CompactString
Converts the type into its DSL string representation. Read more
Source§impl PartialEq for DiagonalDirection
impl PartialEq for DiagonalDirection
impl Copy for DiagonalDirection
impl StructuralPartialEq for DiagonalDirection
Auto Trait Implementations§
impl Freeze for DiagonalDirection
impl RefUnwindSafe for DiagonalDirection
impl Send for DiagonalDirection
impl Sync for DiagonalDirection
impl Unpin for DiagonalDirection
impl UnwindSafe for DiagonalDirection
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'a, T> Prefix<&'a [T], T> for T
impl<'a, T> Prefix<&'a [T], T> for T
Source§fn take_prefix(&self, haystack: &'a [T]) -> Option<(T, &'a [T])>
fn take_prefix(&self, haystack: &'a [T]) -> Option<(T, &'a [T])>
Remove the prefix described by this prefix from the haystack if present, and if so,
return it along with the rest of the haystack.
Source§fn skip_prefix(&self, haystack: Parent) -> Option<Parent>
fn skip_prefix(&self, haystack: Parent) -> Option<Parent>
Remove the prefix described by this prefix from the haystack if present, and return
the rest of the haystack (result is ignored).