Searched refs:as_bytes_without_nul (Results 1 – 1 of 1) sorted by relevance
28 unsafe { std::str::from_utf8_unchecked(self.as_bytes_without_nul()) } in as_str()36 pub fn as_bytes_without_nul(&self) -> &[u8] { in as_bytes_without_nul() method112 s.as_bytes_without_nul() == self.as_bytes() in eq()119 self.as_bytes_without_nul() == s.as_bytes() in eq()145 SmallCString::new("foo").unwrap().as_bytes_without_nul(), in test_small_cstring()155 SmallCString::new("").unwrap().as_bytes_without_nul(), in test_small_cstring()163 assert_eq!(SmallCString::new("").unwrap().as_bytes_without_nul(), b""); in test_small_cstring()