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 { implementation110 impl PartialEq<SmallCString> for str {112 fn eq(&self, s: &SmallCString) -> bool { in eq()117 impl PartialEq<str> for SmallCString { implementation124 impl std::borrow::Borrow<str> for SmallCString { implementation139 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;
136 pub(crate) use util::SmallCString;248 fn str_to_cstring(s: &str) -> Result<SmallCString> { in str_to_cstring() argument249 Ok(SmallCString::new(s)?) in str_to_cstring()323 fn as_cstring(&self) -> Result<util::SmallCString> { in as_cstring() argument