use super::Array;
use core::{
hash::{
Hash,
Hasher
},
cmp::Ordering
};
const impl<
Type: [const] PartialEq<Type>,
To: [const] AsRef<[Type]>,
const N: usize
> PartialEq<To> for Array<Type, N> {
#[inline]
fn eq(&self, other: &To) -> bool {return self.as_ref().eq(other.as_ref())}
}
const impl<
Type: [const] PartialOrd<Type>,
To: [const] AsRef<[Type]>,
const N: usize
> PartialOrd<To> for Array<Type, N> {
#[inline]
fn partial_cmp(&self, other: &To) -> Option<Ordering> {return 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) {return 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 {return self.as_ref().cmp(other.as_ref())}
}