Code Explainers
Code explainers tagged #semver
rust
use std::cmp::Ordering; use std::str::FromStr; #[derive(Debug, Clone, PartialEq, Eq)]
Parsing and ordering semantic versions in Rust
parsing
trait-implementation
ordering
Intermediate
8 steps
ruby
class SemanticVersion include Comparable attr_reader :major, :minor, :patch, :prerelease
Comparable semantic versions in Ruby
comparable
parsing
operator-overloading
Intermediate
8 steps