pub struct VersionBuilder { /* private fields */ }Expand description
Builder for creating Version programmatically.
This builder allows you to construct version strings when building DBC files programmatically by specifying a complete version string.
§Examples
use dbc_rs::VersionBuilder;
// Direct version string
let version = VersionBuilder::new().version("1.0").build()?;
assert_eq!(version.as_str(), "1.0");
// Semantic versioning (as a string)
let version2 = VersionBuilder::new()
.version("1.2.3")
.build()?;
assert_eq!(version2.as_str(), "1.2.3");§Feature Requirements
This builder requires the std feature to be enabled.
Implementations§
Source§impl VersionBuilder
impl VersionBuilder
Trait Implementations§
Source§impl Clone for VersionBuilder
impl Clone for VersionBuilder
Source§fn clone(&self) -> VersionBuilder
fn clone(&self) -> VersionBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersionBuilder
impl Debug for VersionBuilder
Auto Trait Implementations§
impl Freeze for VersionBuilder
impl RefUnwindSafe for VersionBuilder
impl Send for VersionBuilder
impl Sync for VersionBuilder
impl Unpin for VersionBuilder
impl UnwindSafe for VersionBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more