Struct version_compare::Manifest [−][src]
Expand description
Version manifest (configuration).
A manifest (configuration) that is used respectively when parsing and comparing version strings.
Fields
max_depth: Option<usize>
The maximum depth of a version number.
This specifies the maximum number of parts. There is no limit if None
is set.
ignore_text: bool
Whether to ignore text parts in version strings.
Implementations
Version manifest implementation.
Check whether there’s a maximum configured depth.
Examples
use version_compare::Manifest;
let mut manifest = Manifest::default();
assert!(!manifest.has_max_depth());
manifest.max_depth = Some(3);
assert!(manifest.has_max_depth());
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Manifest
impl UnwindSafe for Manifest
Blanket Implementations
Mutably borrows from an owned value. Read more