Skip to main content

object_rainbow/impls/
cstr.rs

1use std::ffi::CStr;
2
3use crate::*;
4
5impl ToOutput for CStr {
6    fn to_output(&self, output: &mut impl Output) {
7        self.to_bytes_with_nul().to_output(output);
8    }
9}
10
11impl InlineOutput for CStr {}
12
13impl ListHashes for CStr {}
14impl Topological for CStr {}
15impl Tagged for CStr {}
16
17impl ByteOrd for CStr {
18    fn bytes_cmp(&self, other: &Self) -> Ordering {
19        self.cmp(other)
20    }
21}