blueprint-strong-hash 0.1.0

Hash trait similar to std::hash::Hash but for strong/cryptographic hashes
Documentation
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is dual-licensed under either the MIT license found in the
 * LICENSE-MIT file in the root directory of this source tree or the Apache
 * License, Version 2.0 found in the LICENSE-APACHE file in the root directory
 * of this source tree. You may select, at your option, one of the
 * above-listed licenses.
 */

#![cfg(feature = "triomphe")]

use crate::StrongHash;

impl<T: StrongHash + ?Sized> StrongHash for triomphe::Arc<T> {
    fn strong_hash<H: std::hash::Hasher>(&self, state: &mut H) {
        self.as_ref().strong_hash(state);
    }
}