oxilean_codegen/ffi_bridge/ffiextversion_traits.rs
1//! # FfiExtVersion - Trait Implementations
2//!
3//! This module contains trait implementations for `FfiExtVersion`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use crate::lcnf::*;
12
13use super::types::FfiExtVersion;
14use std::fmt;
15
16impl std::fmt::Display for FfiExtVersion {
17 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
18 write!(f, "{}.{}.{}", self.major, self.minor, self.patch)?;
19 if let Some(ref p) = self.pre {
20 write!(f, "-{}", p)?;
21 }
22 Ok(())
23 }
24}