pub type CowStr = Cow<'static, str>;
Expand description
Cow<'static, str>
.
buildstructor
doesn’t support Into<_>
for types with parameters (like Cow<'static, str>
),
so we trick it by defining a type alias.
Aliased Type§
pub enum CowStr {
Borrowed(&'static str),
Owned(String),
}