Skip to main content

object_rainbow/impls/
str.rs

1use crate::*;
2
3impl ToOutput for str {
4    fn to_output(&self, output: &mut impl Output) {
5        self.as_bytes().to_output(output);
6    }
7}
8
9impl ListHashes for str {}
10impl Topological for str {}
11impl Tagged for str {}
12impl MaybeHasNiche for str {
13    type MnArray = NoNiche<NicheForUnsized>;
14}
15
16impl ByteOrd for str {
17    fn bytes_cmp(&self, other: &Self) -> Ordering {
18        self.cmp(other)
19    }
20}