pub struct GreedyContractionType {
pub cost: Reverse<GreedyCostType>,
pub k1: ArrayIndexType,
pub k2: ArrayIndexType,
pub k12: ArrayIndexType,
}Expand description
Type representing a greedy contraction candidate.
Order of cost is reversed (less is better).
Fields§
§cost: Reverse<GreedyCostType>The cost of the contraction, wrapped in Reverse to reverse the order.
k1: ArrayIndexTypeThe first input array indices being contracted.
k2: ArrayIndexTypeThe second input array indices being contracted.
k12: ArrayIndexTypeThe resulting array indices after the contraction.
Trait Implementations§
Source§impl Clone for GreedyContractionType
impl Clone for GreedyContractionType
Source§impl Debug for GreedyContractionType
impl Debug for GreedyContractionType
impl Eq for GreedyContractionType
Source§impl Ord for GreedyContractionType
impl Ord for GreedyContractionType
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 GreedyContractionType
impl PartialEq for GreedyContractionType
Source§impl PartialOrd for GreedyContractionType
impl PartialOrd for GreedyContractionType
impl StructuralPartialEq for GreedyContractionType
Auto Trait Implementations§
impl Freeze for GreedyContractionType
impl RefUnwindSafe for GreedyContractionType
impl Send for GreedyContractionType
impl Sync for GreedyContractionType
impl Unpin for GreedyContractionType
impl UnsafeUnpin for GreedyContractionType
impl UnwindSafe for GreedyContractionType
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 more