MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / fmt

Method fmt

crates/opencode-provider/src/transform.rs:453–460  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

451
452impl fmt::Display for Modality {
453 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
454 match self {
455 Modality::Image => write!(f, "image"),
456 Modality::Audio => write!(f, "audio"),
457 Modality::Video => write!(f, "video"),
458 Modality::Pdf => write!(f, "pdf"),
459 }
460 }
461}
462
463pub fn mime_to_modality(mime: &str) -> Option<Modality> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected