use crate::VecVector;
use core::fmt;
impl<T: Clone> Clone for VecVector<T> {
fn clone(&self) -> Self {
Self { coords: self.coords.clone() }
}
}
impl<T: Default> Default for VecVector<T> {
fn default() -> Self {
Self { coords: Default::default() }
}
}
impl<T: fmt::Debug> fmt::Debug for VecVector<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("VecVector").field("coords", &self.coords).finish()
}
}
impl<T: PartialEq> PartialEq for VecVector<T> {
fn eq(&self, other: &Self) -> bool {
self.coords == other.coords
}
}
impl<T: Eq> Eq for VecVector<T> {}