Home
last modified time | relevance | path

Searched refs:SmallCString (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/rusqlite/src/util/
Dsmall_cstr.rs8 pub(crate) struct SmallCString(smallvec::SmallVec<[u8; 16]>); struct
10 impl SmallCString { impl
88 impl Default for SmallCString { implementation
95 impl std::fmt::Debug for SmallCString { implementation
101 impl std::ops::Deref for SmallCString { implementation
109 impl PartialEq<SmallCString> for str {
111 fn eq(&self, s: &SmallCString) -> bool { in eq()
116 impl PartialEq<str> for SmallCString { implementation
123 impl std::borrow::Borrow<str> for SmallCString { implementation
138 assert_eq!(SmallCString::default().0, SmallCString::new("").unwrap().0); in test_small_cstring()
[all …]
Dparam_cache.rs1 use super::SmallCString;
9 pub(crate) struct ParamIndexCache(RefCell<BTreeMap<SmallCString, usize>>);
23 let name = SmallCString::new(s).ok()?; in get_or_insert_with()
Dmod.rs5 pub(crate) use small_cstr::SmallCString;
/external/rust/crates/rusqlite/src/
Dlib.rs126 pub(crate) use util::SmallCString;
231 fn str_to_cstring(s: &str) -> Result<SmallCString> { in str_to_cstring() argument
232 Ok(SmallCString::new(s)?) in str_to_cstring()
299 fn to_cstring(&self) -> Result<util::SmallCString> { in to_cstring() argument