MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / fmt

Method fmt

src/fs/ata.rs:549–553  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

547impl fmt::Display for Drive
548{
549 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result
550 {
551 let (size, unit) = self.formatted_size();
552 write!(f, "{} {} ({} {})", self.model, self.ser, size, unit)
553 }
554}

Callers

nothing calls this directly

Calls 1

formatted_sizeMethod · 0.80

Tested by

no test coverage detected