MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / from

Method from

chapter 3/block.rs:89–92  ·  view source on GitHub ↗
(b: Block)

Source from the content-addressed store, hash-verified

87
88impl From<Block> for IVec {
89 fn from(b: Block) -> Self {
90 let bytes = bincode::serialize(&b).unwrap();
91 Self::from(bytes)
92 }
93}
94
95

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected