Skip to main content

CowMapBorrowedExt

Trait CowMapBorrowedExt 

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§