MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / fmt

Method fmt

graphlite/src/schema/types.rs:88–97  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

86
87impl std::fmt::Display for GraphTypeVersion {
88 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
89 write!(f, "{}.{}.{}", self.major, self.minor, self.patch)?;
90 if let Some(pre) = &self.pre_release {
91 write!(f, "-{}", pre)?;
92 }
93 if let Some(build) = &self.build_metadata {
94 write!(f, "+{}", build)?;
95 }
96 Ok(())
97 }
98}
99
100/// Definition of a node type within a graph type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected