1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//! Protocol Comparable

use clojure::rust::*;

use crate::*;
// use clojure::lang::*;

pub trait Comparable: IObject {
    /// Compare with object
    ///
    /// result < 0 iff self < o
    /// result > 0 iff self > o
    /// result 0 0 iff self = o
    /// throw NullPointerException iff o = nil
    /// throw ClassCastException iff o and self are not comparable
    #[allow(non_snake_case)]
    fn compareTo(
        &self,
        o: &Object,
    ) -> ObjResult<i8>;
}