INNER CODE UNIT · Rust

hash

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

    fn hash<H: hash::Hasher>(&self, state: &mut H) {
        let Ident {
            value,
            quote_style,
            // exhaustiveness check; we ignore spans in hashes
            span: _,
        } = self;

        value.hash(state);
        quote_style.hash(state);
    }
}

impl Eq for Ident {}

impl PartialOrd for Ident {
    fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
        Some(self.cmp(other))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…