Searched refs:SmallCString (Results 1 – 4 of 4) sorted by relevance
8 pub(crate) struct SmallCString(smallvec::SmallVec<[u8; 16]>); struct10 impl SmallCString { impl88 impl Default for SmallCString { implementation95 impl std::fmt::Debug for SmallCString { implementation101 impl std::ops::Deref for SmallCString { implementation109 impl PartialEq<SmallCString> for str {111 fn eq(&self, s: &SmallCString) -> bool { in eq()116 impl PartialEq<str> for SmallCString { implementation123 impl std::borrow::Borrow<str> for SmallCString { implementation138 assert_eq!(SmallCString::default().0, SmallCString::new("").unwrap().0); in test_small_cstring()[all …]
1 use super::SmallCString;9 pub(crate) struct ParamIndexCache(RefCell<BTreeMap<SmallCString, usize>>);23 let name = SmallCString::new(s).ok()?; in get_or_insert_with()
5 pub(crate) use small_cstr::SmallCString;
126 pub(crate) use util::SmallCString;231 fn str_to_cstring(s: &str) -> Result<SmallCString> { in str_to_cstring() argument232 Ok(SmallCString::new(s)?) in str_to_cstring()299 fn to_cstring(&self) -> Result<util::SmallCString> { in to_cstring() argument