stefans-utils 0.12.0

A collection of useful Rust utility functions, types, and traits.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::as_str::AsStr;

impl AsStr for bool {
    fn as_str(&self) -> &str {
        match self {
            true => "true",
            false => "false",
        }
    }
}