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

Method new

graphlite/src/schema/types.rs:36–44  ·  view source on GitHub ↗
(major: u32, minor: u32, patch: u32)

Source from the content-addressed store, hash-verified

34
35impl GraphTypeVersion {
36 pub fn new(major: u32, minor: u32, patch: u32) -> Self {
37 Self {
38 major,
39 minor,
40 patch,
41 pre_release: None,
42 build_metadata: None,
43 }
44 }
45
46 pub fn parse(version_str: &str) -> Result<Self, String> {
47 let parts: Vec<&str> = version_str.split('.').collect();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected