use super::Pointer;
use core::{
cmp::Ordering,
hash::{
Hash,
Hasher
}
};
impl<'valid, Type> PartialEq for Pointer<'valid, Type> {
fn eq(&self, other: &Self) -> bool {return self.as_ptr().eq(&other.as_ptr())}
}
impl<'valid, Type> PartialOrd for Pointer<'valid, Type> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {return self.as_ptr().partial_cmp(&other.as_ptr())}
}
impl<'valid, Type> Eq for Pointer<'valid, Type> {}
impl<'valid, Type> Ord for Pointer<'valid, Type> {
fn cmp(&self, other: &Self) -> Ordering {return self.as_ptr().cmp(&other.as_ptr())}
}
impl<'valid, Type> Hash for Pointer<'valid, Type> {
fn hash<H: Hasher>(&self, state: &mut H) {return Hash::hash(&self.as_ptr(), state)}
}