Struct ComparisonMatrix
pub struct ComparisonMatrix(/* private fields */);
Expand description
A matrix of pairwise comparisons between all architectures.
Implementations§
§impl ComparisonMatrix
impl ComparisonMatrix
pub fn iter_all(&self) -> impl Iterator<Item = ComparisonResult> + '_
pub fn iter_all(&self) -> impl Iterator<Item = ComparisonResult> + '_
Iterates over the entire matrix.
pub fn propagate_result(&mut self, index_a: usize, index_b: usize)
pub fn propagate_result(&mut self, index_a: usize, index_b: usize)
Propagates the ComparisonResult in (index_a, index_b)
to the rest of the matrix.
For example, if A is equal to B and B is equal to C, this method ensures that A is also set equal to C.
Trait Implementations§
§impl Clone for ComparisonMatrix
impl Clone for ComparisonMatrix
§fn clone(&self) -> ComparisonMatrix
fn clone(&self) -> ComparisonMatrix
Returns a copy 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 more§impl Debug for ComparisonMatrix
impl Debug for ComparisonMatrix
§impl<'de> Deserialize<'de> for ComparisonMatrix
impl<'de> Deserialize<'de> for ComparisonMatrix
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<Vec<Vec<ComparisonResult>>> for ComparisonMatrix
impl From<Vec<Vec<ComparisonResult>>> for ComparisonMatrix
§fn from(value: Vec<Vec<ComparisonResult>>) -> Self
fn from(value: Vec<Vec<ComparisonResult>>) -> Self
Converts to this type from the input type.
§impl Hash for ComparisonMatrix
impl Hash for ComparisonMatrix
§impl Index<(usize, usize)> for ComparisonMatrix
impl Index<(usize, usize)> for ComparisonMatrix
§impl IndexMut<(usize, usize)> for ComparisonMatrix
impl IndexMut<(usize, usize)> for ComparisonMatrix
§impl PartialEq for ComparisonMatrix
impl PartialEq for ComparisonMatrix
§impl Serialize for ComparisonMatrix
impl Serialize for ComparisonMatrix
impl Eq for ComparisonMatrix
impl StructuralPartialEq for ComparisonMatrix
Auto Trait Implementations§
impl Freeze for ComparisonMatrix
impl RefUnwindSafe for ComparisonMatrix
impl Send for ComparisonMatrix
impl Sync for ComparisonMatrix
impl Unpin for ComparisonMatrix
impl UnwindSafe for ComparisonMatrix
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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