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

Class BKey

publication/code/chapter10/blockchain/blockchain3/utils/src/bkey.rs:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5// 定义大 Key
6#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
7pub struct BKey {
8 pub val: U256,
9}
10
11impl Key for BKey {
12 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