Trait Dairy
Other items indairy
pub trait Dairy<'a>: ToOwned + Sealed { type Cow: Cow<'a, Self>; }
Internal trait which allows us to have different Cow implementations for the same type across different platforms.
Cow
This is a sealed trait so only this crate can implement it.
type Cow: Cow<'a, Self>
impl<'a> Dairy<'a> for str
type Cow = Cow<'a, Self>
impl<'a, T: 'a + Clone> Dairy<'a> for [T]
impl<'a> Dairy<'a> for CStr
impl<'a> Dairy<'a> for OsStr
impl<'a> Dairy<'a> for Path