INNER CODE UNIT · Rust

partial_cmp

apache/datafusion-sqlparser-rs · src/ast/mod.rs:307

    fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for Ident {
    fn cmp(&self, other: &Self) -> Ordering {
        let Ident {
            value,
            quote_style,
            // exhaustiveness check; we ignore spans in ordering
            span: _,
        } = self;

        let Ident {
            value: other_value,
            quote_style: other_quote_style,
            // exhaustiveness check; we ignore spans in ordering

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…