use std::borrow::Cow; use bstr::{BStr, ByteSlice}; type Result = std::result::Result>; fn b(s: &str) -> &bstr::BStr { s.into() } pub fn cow_str(s: &str) -> Cow<'_, BStr> { Cow::Borrowed(s.as_bytes().as_bstr()) } mod boolean; mod color; mod integer; mod path;