MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / fmt

Method fmt

block/src/qcow/header.rs:32–37  ·  view source on GitHub ↗
(&self, f: &mut Formatter<'_>)

Source from the content-addressed store, hash-verified

30
31impl Display for ImageType {
32 fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
33 match self {
34 ImageType::Raw => write!(f, "raw"),
35 ImageType::Qcow2 => write!(f, "qcow2"),
36 }
37 }
38}
39
40impl FromStr for ImageType {

Callers

nothing calls this directly

Calls 3

iterMethod · 0.80
mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected