Skip to main content

just_string/
traits_d.rs

1use std::fmt::Display;
2
3use crate::JustString;
4
5impl Default for JustString<'_> {
6    fn default() -> Self {
7        Self::RefStr("")
8    }
9}
10
11impl Display for JustString<'_> {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13        (**self).fmt(f)
14    }
15}