2020-04-07 15:01:41 -05:00
|
|
|
pub struct CustomEq;
|
|
|
|
|
|
|
|
impl Eq for CustomEq {}
|
|
|
|
impl PartialEq for CustomEq {
|
|
|
|
fn eq(&self, _: &Self) -> bool {
|
|
|
|
false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub const NONE: Option<CustomEq> = None;
|
|
|
|
pub const SOME: Option<CustomEq> = Some(CustomEq);
|
2020-05-02 16:39:12 -05:00
|
|
|
|
|
|
|
pub trait AssocConst {
|
|
|
|
const NONE: Option<CustomEq> = None;
|
|
|
|
const SOME: Option<CustomEq> = Some(CustomEq);
|
|
|
|
}
|