pub trait CowMapBorrowedExt<'b, IN, OUT>
where IN: 'b + ToOwned + ?Sized, OUT: 'b + ToOwned + ?Sized,
{ // Required method fn map_borrowed<F>(self, f: F) -> Cow<'b, OUT> where F: for<'f> FnOnce(&'f IN) -> Cow<'f, OUT>; }

Required Methods§

source

fn map_borrowed<F>(self, f: F) -> Cow<'b, OUT>
where F: for<'f> FnOnce(&'f IN) -> Cow<'f, OUT>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'b, IN, OUT> CowMapBorrowedExt<'b, IN, OUT> for Cow<'b, IN>
where IN: 'b + ToOwned + ?Sized, OUT: 'b + ToOwned + ?Sized,

source§

fn map_borrowed<F>(self, f: F) -> Cow<'b, OUT>
where F: for<'f> FnOnce(&'f IN) -> Cow<'f, OUT>,

Implementors§