strmath 0.8.1

Do math with your strings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::StrMath;
use std::cmp::Ordering;

impl PartialOrd for StrMath<'_> {
    fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for StrMath<'_> {
    fn cmp(&self, other: &Self) -> Ordering {
        (***self).cmp(&***other)
    }
}