use super::Array;
use core::{
hash::{
Hash,
Hasher
},
cmp::Ordering
};
const impl<Type: [const] PartialEq, const N: usize> PartialEq for Array<Type, N> {
#[inline]
fn eq(&self, other: &Self) -> bool {self.as_ref() == other.as_ref()}
}
const impl<Type: [const] PartialOrd, const N: usize> PartialOrd for Array<Type, N> {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {self.as_ref().partial_cmp(other.as_ref())}
}
impl<Type: Hash, const N: usize> Hash for Array<Type, N> {
#[inline]
fn hash<Hashing: Hasher>(&self, state: &mut Hashing) {Hash::hash(self.as_ref(), state)}
}
const impl<Type: [const] Eq, const N: usize> Eq for Array<Type, N> {}
const impl<Type: [const] Ord, const N: usize> Ord for Array<Type, N> {
#[inline]
fn cmp(&self, other: &Self) -> Ordering {
self.as_ref().cmp(other.as_ref())
}
}