pub trait IntoOwned<'any> {
    type Owned: 'any;

    // Required method
    fn into_owned(self) -> Self::Owned;
}
Expand description

A trait for things that can be cloned with a new lifetime.

'any lifeitme means the output should have 'static lifetime.

Required Associated Types§

source

type Owned: 'any

A variant of Self with a new lifetime.

Required Methods§

source

fn into_owned(self) -> Self::Owned

Make lifetime of self 'static.

Implementations on Foreign Types§

source§

impl<'a> IntoOwned<'a> for bool

§

type Owned = bool

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for char

§

type Owned = char

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for f32

§

type Owned = f32

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for f64

§

type Owned = f64

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for i8

§

type Owned = i8

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for i16

§

type Owned = i16

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for i32

§

type Owned = i32

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for i64

§

type Owned = i64

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for i128

§

type Owned = i128

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for isize

§

type Owned = isize

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for u8

§

type Owned = u8

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for u16

§

type Owned = u16

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for u32

§

type Owned = u32

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for u64

§

type Owned = u64

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for u128

§

type Owned = u128

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for usize

§

type Owned = usize

source§

fn into_owned(self) -> Self

source§

impl<'a> IntoOwned<'a> for String

§

type Owned = String

source§

fn into_owned(self) -> Self

source§

impl<'any, A, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: IntoOwned<'any>, B: IntoOwned<'any>, C: IntoOwned<'any>, D: IntoOwned<'any>, E: IntoOwned<'any>, F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<A as IntoOwned<'any>>::Owned, <B as IntoOwned<'any>>::Owned, <C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (B, C, D, E, F, G, H, I, J, K, L)
where B: IntoOwned<'any>, C: IntoOwned<'any>, D: IntoOwned<'any>, E: IntoOwned<'any>, F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<B as IntoOwned<'any>>::Owned, <C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (C, D, E, F, G, H, I, J, K, L)
where C: IntoOwned<'any>, D: IntoOwned<'any>, E: IntoOwned<'any>, F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (D, E, F, G, H, I, J, K, L)
where D: IntoOwned<'any>, E: IntoOwned<'any>, F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, E, F, G, H, I, J, K, L> IntoOwned<'any> for (E, F, G, H, I, J, K, L)
where E: IntoOwned<'any>, F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, F, G, H, I, J, K, L> IntoOwned<'any> for (F, G, H, I, J, K, L)
where F: IntoOwned<'any>, G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, G, H, I, J, K, L> IntoOwned<'any> for (G, H, I, J, K, L)
where G: IntoOwned<'any>, H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, H, I, J, K, L> IntoOwned<'any> for (H, I, J, K, L)
where H: IntoOwned<'any>, I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, I, J, K, L> IntoOwned<'any> for (I, J, K, L)
where I: IntoOwned<'any>, J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, J, K, L> IntoOwned<'any> for (J, K, L)
where J: IntoOwned<'any>, K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, K, L> IntoOwned<'any> for (K, L)
where K: IntoOwned<'any>, L: IntoOwned<'any>,

§

type Owned = (<K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, L> IntoOwned<'any> for (L,)
where L: IntoOwned<'any>,

§

type Owned = (<L as IntoOwned<'any>>::Owned,)

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, T> IntoOwned<'any> for Option<T>
where T: IntoOwned<'any>,

§

type Owned = Option<<T as IntoOwned<'any>>::Owned>

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, T> IntoOwned<'any> for Box<[T]>
where T: IntoOwned<'any>,

§

type Owned = Box<[<T as IntoOwned<'any>>::Owned]>

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, T> IntoOwned<'any> for Box<T>
where T: IntoOwned<'any>,

§

type Owned = Box<<T as IntoOwned<'any>>::Owned>

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, T> IntoOwned<'any> for Vec<T>
where T: IntoOwned<'any>,

§

type Owned = Vec<<T as IntoOwned<'any>>::Owned>

source§

fn into_owned(self) -> Self::Owned

source§

impl<'any, T, const N: usize> IntoOwned<'any> for [T; N]
where T: IntoOwned<'any>,

§

type Owned = [<T as IntoOwned<'any>>::Owned; N]

source§

fn into_owned(self) -> Self::Owned

Implementors§