1 2 3 4 5 6 7 8 9
use std::ops::Deref; use crate::JustString; impl Ord for JustString<'_> { fn cmp(&self, other: &Self) -> std::cmp::Ordering { self.deref().cmp(&**other) } }