#[repr(u8)]pub enum MergeOperation {
Add = 0,
Subtract = 1,
Multiply = 2,
Divide = 3,
Max = 4,
Min = 5,
}Expand description
Represents mathematical or aggregation operations that can be applied during a merge or combination process of geometric objects or curves.
This enum defines the possible operations when merging or combining multiple
data sets, such as curves or points. It is commonly used with the Arithmetic trait
to specify how values should be combined during geometric operations.
§Operations
Add- Performs addition of values (a + b)Subtract- Performs subtraction of values (a - b)Multiply- Performs multiplication of values (a * b)Divide- Performs division of values (a / b), with appropriate error handling for division by zeroMax- Selects the maximum value between operands (max(a, b))Min- Selects the minimum value between operands (min(a, b))
The operation specified will determine how values are combined when merging
geometric objects that implement the Arithmetic trait.
Variants§
Add = 0
Adds values together (a + b)
Subtract = 1
Subtracts the second value from the first (a - b)
Multiply = 2
Multiplies values together (a * b)
Divide = 3
Divides the first value by the second (a / b)
Max = 4
Selects the maximum between values (max(a, b))
Min = 5
Selects the minimum between values (min(a, b))
Trait Implementations§
Source§impl Clone for MergeOperation
impl Clone for MergeOperation
Source§impl ComposeSchema for MergeOperation
impl ComposeSchema for MergeOperation
impl Copy for MergeOperation
Source§impl Debug for MergeOperation
impl Debug for MergeOperation
impl Eq for MergeOperation
Source§impl Hash for MergeOperation
impl Hash for MergeOperation
Source§impl Ord for MergeOperation
impl Ord for MergeOperation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MergeOperation
impl PartialEq for MergeOperation
Source§impl PartialOrd for MergeOperation
impl PartialOrd for MergeOperation
impl StructuralPartialEq for MergeOperation
Auto Trait Implementations§
impl Freeze for MergeOperation
impl RefUnwindSafe for MergeOperation
impl Send for MergeOperation
impl Sync for MergeOperation
impl Unpin for MergeOperation
impl UnsafeUnpin for MergeOperation
impl UnwindSafe for MergeOperation
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.