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
pub trait AsStr {
    fn as_str(&self) -> &str;
}

impl<T: AsStr> AsStr for &T {
    fn as_str(&self) -> &str {
        (*self).as_str()
    }
}