# Trait collections::borrow::IntoCow [−] [src]

    pub trait IntoCow<'a, B: ?Sized> where B: ToOwned {
        fn into_cow(self) -> Cow<'a, B>;
    }

Deprecated since 1.7.0

: conflicts with Into, may return with specialization

Trait for moving into a `Cow`.

## Required Methods

### `fn into_cow(self) -> Cow<'a, B>`

Deprecated since 1.7.0

: conflicts with Into, may return with specialization

Moves `self` into `Cow`

## Implementors

- `impl<'a, B: ?Sized> IntoCow<'a, B> for Cow<'a, B> where B: ToOwned`
- `impl IntoCow<'static, str> for String`
- `impl<'a> IntoCow<'a, str> for &'a str`
- `impl<'a, T: 'a> IntoCow<'a, [T]> for Vec<T> where T: Clone`
- `impl<'a, T> IntoCow<'a, [T]> for &'a [T] where T: Clone`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)