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        if output.is_real() {
6            output.write(self.as_bytes());
7        }
8    }
9}
10
11impl ListHashes for str {}
12impl Topological for str {}
13impl Tagged for str {}
14impl MaybeHasNiche for str {
15    type MnArray = NoNiche<NicheForUnsized>;
16}