(major: u32, minor: u32, patch: u32)
| 34 | |
| 35 | impl 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(); |
nothing calls this directly
no outgoing calls
no test coverage detected