use std::ffi::CStr;

use crate::*;

impl ToOutput for CStr {
    fn to_output(&self, output: &mut impl Output) {
        self.to_bytes_with_nul().to_output(output);
    }
}

impl InlineOutput for CStr {}

impl ListHashes for CStr {}
impl Topological for CStr {}
impl Tagged for CStr {}

impl ByteOrd for CStr {
    fn bytes_cmp(&self, other: &Self) -> Ordering {
        self.cmp(other)
    }
}
