pub struct SweepPattern { /* private fields */ }Implementations§
Source§impl SweepPattern
impl SweepPattern
pub fn left_to_right(gradient_span: u16) -> Self
pub fn right_to_left(gradient_span: u16) -> Self
pub fn up_to_down(gradient_span: u16) -> Self
pub fn down_to_up(gradient_span: u16) -> Self
Trait Implementations§
Source§impl Clone for SweepPattern
impl Clone for SweepPattern
Source§fn clone(&self) -> SweepPattern
fn clone(&self) -> SweepPattern
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 SweepPattern
impl Debug for SweepPattern
Source§impl DslFormat for SweepPattern
Available on crate feature dsl only.
impl DslFormat for SweepPattern
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 From<SweepPattern> for AnyPattern
impl From<SweepPattern> for AnyPattern
Source§fn from(pattern: SweepPattern) -> Self
fn from(pattern: SweepPattern) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SweepPattern
impl PartialEq for SweepPattern
Source§impl Pattern for SweepPattern
impl Pattern for SweepPattern
impl Copy for SweepPattern
impl StructuralPartialEq for SweepPattern
Auto Trait Implementations§
impl Freeze for SweepPattern
impl RefUnwindSafe for SweepPattern
impl Send for SweepPattern
impl Sync for SweepPattern
impl Unpin for SweepPattern
impl UnwindSafe for SweepPattern
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).