strmath 0.8.1

Do math with your strings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::ops::Neg;

use crate::{declare_modules, utils::Reverse, StrMath};

declare_modules!(add, sub, mul, div, rem, deref, eq, ord, sh);

impl Neg for StrMath<'_> {
    type Output = Self;

    #[inline]
    fn neg(mut self) -> Self::Output {
        self.reverse();
        self
    }
}