pub struct DistanceMatrix {
pub label_names: HashMap<String, String>,
pub labels: Vec<Identifier>,
pub matrix: Vec<Vec<f64>>,
pub type_: Option<DistanceMatrixType>,
}Expand description
A pairwise distance matrix, shared by react-bio-viz and acacia (via @holmrenser/nj’s DistanceResult). Squareness, symmetry, and a zero diagonal are semantic constraints, not checked structurally by this schema.
Fields§
§label_names: HashMap<String, String>Optional display-name lookup from label to a longer/human-readable name.
labels: Vec<Identifier>§matrix: Vec<Vec<f64>>§type_: Option<DistanceMatrixType>Wire-format object-kind discriminator (see betula’s versioning policy). Optional.
Trait Implementations§
Source§impl Clone for DistanceMatrix
impl Clone for DistanceMatrix
Source§impl Debug for DistanceMatrix
impl Debug for DistanceMatrix
Source§impl<'de> Deserialize<'de> for DistanceMatrix
impl<'de> Deserialize<'de> for DistanceMatrix
Source§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
Source§impl Kind for DistanceMatrix
impl Kind for DistanceMatrix
Source§impl PartialEq for DistanceMatrix
impl PartialEq for DistanceMatrix
Source§impl Serialize for DistanceMatrix
impl Serialize for DistanceMatrix
impl StructuralPartialEq for DistanceMatrix
Auto Trait Implementations§
impl Freeze for DistanceMatrix
impl RefUnwindSafe for DistanceMatrix
impl Send for DistanceMatrix
impl Sync for DistanceMatrix
impl Unpin for DistanceMatrix
impl UnsafeUnpin for DistanceMatrix
impl UnwindSafe for DistanceMatrix
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