LitComparable

Trait LitComparable 

Source
trait LitComparable {
    // Required method
    fn lc_compare(
        a: &Self,
        b: &Self,
        cmp_loc: &(Span, &'_ str),
    ) -> Result<Equality>;
}

Required Methods§

Source

fn lc_compare(a: &Self, b: &Self, cmp_loc: &(Span, &'_ str)) -> Result<Equality>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LitComparable for LitInt

Source§

fn lc_compare(a: &Self, b: &Self, cmp_loc: &(Span, &'_ str)) -> Result<Equality>

Implementors§