Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/precomputed-hash/src/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 643 B image not shown  

Quelle  lib.rs

  Sprache: Rust
 

//! A base trait to expose a precomputed hash for a type.

/// A trait to expose a precomputed hash for a type.
pub trait PrecomputedHash {
    // TODO(emilio): Perhaps an associated type would be on point here.

    /// Return the precomputed hash for this item.
    fn precomputed_hash(&self) -> u32;
}

// These are equivalent to the `std::Hash` impls.
impl<'a, T: PrecomputedHash> PrecomputedHash for &'a T {
    fn precomputed_hash(&self) -> u32 {
        (**self).precomputed_hash()
    }
}

impl<'a, T: PrecomputedHash> PrecomputedHash for &'mut T {
    fn precomputed_hash(&self) -> u32 {
        (**self).precomputed_hash()
    }
}

Messung V0.5 in Prozent
C=74 H=99 G=87

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-18) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.