pub enum PatternProperty {
Consecutive,
CompatibleShapes,
ElementWise,
Commutative,
NoSideEffects,
}Expand description
Properties required for pattern matching
Variants§
Consecutive
Operations must be consecutive
CompatibleShapes
Operations must have compatible shapes
ElementWise
Operations must be element-wise
Commutative
Operations must be commutative
NoSideEffects
Operations must have no side effects
Trait Implementations§
Source§impl Clone for PatternProperty
impl Clone for PatternProperty
Source§fn clone(&self) -> PatternProperty
fn clone(&self) -> PatternProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternProperty
impl Debug for PatternProperty
Source§impl PartialEq for PatternProperty
impl PartialEq for PatternProperty
impl StructuralPartialEq for PatternProperty
Auto Trait Implementations§
impl Freeze for PatternProperty
impl RefUnwindSafe for PatternProperty
impl Send for PatternProperty
impl Sync for PatternProperty
impl Unpin for PatternProperty
impl UnsafeUnpin for PatternProperty
impl UnwindSafe for PatternProperty
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more