Trait IntoCow

Source
pub trait IntoCow<'a, T: ToOwned + ?Sized + 'a> {
    // Required method
    fn into_cow(self) -> Cow<'a, T>;
}
Expand description

Ad hoc polymorphism for accepting either a reference or an owned function argument.

Required Methods§

Source

fn into_cow(self) -> Cow<'a, T>

Wraps this reference (or owned value) into a Cow.

Implementations on Foreign Types§

Source§

impl<'a> IntoCow<'a, Registry> for &'a Registry

Source§

fn into_cow(self) -> Cow<'a, Registry>

Source§

impl<'a> IntoCow<'a, Registry> for Registry

Source§

fn into_cow(self) -> Cow<'a, Self>

Implementors§