smvr 0.1.4

A flexible parser and evaluator for interacting with Semantic Version strings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::component::PartType;

/// Error parsing a version string.
#[derive(Debug, PartialEq, Eq)]
pub enum Error {
    /// A part of the provided version string contains an invalid character.
    InvalidCharacter(PartType),

    /// A part of the provided version string includes a preceding zero, which is not
    /// allowed.
    InvalidPrecedingZero(PartType),
}