MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / BKey

Class BKey

code/chapter09/blockchain/blockchain5/utils/src/bkey.rs:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
6pub struct BKey {
7 pub val: U256,
8}
9
10impl Key for BKey {
11 fn as_slice<T, F: Fn(&[u8]) -> T>(&self, func: F) -> T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected