Dairy

Trait Dairy 

Source
pub trait Dairy<'a>: ToOwned + Sealed {
    type Cow: Cow<'a, Self>;
}
Expand description

Internal trait which allows us to have different Cow implementations for the same type across different platforms.

This is a sealed trait so only this crate can implement it.

Required Associated Types§

Source

type Cow: Cow<'a, Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> Dairy<'a> for str

Source§

type Cow = Cow<'a, str>

Source§

impl<'a> Dairy<'a> for CStr

Source§

type Cow = Cow<'a, CStr>

Source§

impl<'a> Dairy<'a> for OsStr

Source§

type Cow = Cow<'a, OsStr>

Source§

impl<'a> Dairy<'a> for Path

Source§

type Cow = Cow<'a, Path>

Source§

impl<'a, T: 'a + Clone> Dairy<'a> for [T]

Source§

type Cow = Cow<'a, [T]>

Implementors§