object_rainbow/impls/
string.rs1use crate::*;
2
3impl ToOutput for String {
4 fn to_output(&self, output: &mut impl Output) {
5 self.as_str().to_output(output);
6 }
7}
8
9impl<I: ParseInput> Parse<I> for String {
10 fn parse(input: I) -> crate::Result<Self> {
11 Ok(Self::from_utf8(input.parse()?)?)
12 }
13}
14
15impl Tagged for String {}
16impl ListHashes for String {}
17impl Topological for String {}
18impl MaybeHasNiche for String {
19 type MnArray = NoNiche<NicheForUnsized>;
20}
21
22impl ByteOrd for String {
23 fn bytes_cmp(&self, other: &Self) -> Ordering {
24 self.cmp(other)
25 }
26}