flatcontainer

Trait IntoOwned

Source
pub trait IntoOwned<'a> {
    type Owned;

    // Required methods
    fn into_owned(self) -> Self::Owned;
    fn clone_onto(self, other: &mut Self::Owned);
    fn borrow_as(owned: &'a Self::Owned) -> Self;
}
Expand description

A reference type corresponding to an owned type, supporting conversion in each direction.

This trait can be implemented by a GAT, and enables owned types to be borrowed as a GAT. This trait is analogous to ToOwned, but not as prescriptive. Specifically, it avoids the requirement that the other trait implement Borrow, for which a borrow must result in a &'self Borrowed, which cannot move the lifetime into a GAT borrowed type.

Required Associated Types§

Source

type Owned

Owned type into which this type can be converted.

Required Methods§

Source

fn into_owned(self) -> Self::Owned

Conversion from an instance of this type to the owned type.

Source

fn clone_onto(self, other: &mut Self::Owned)

Clones self onto an existing instance of the owned type.

Source

fn borrow_as(owned: &'a Self::Owned) -> Self

Borrows an owned instance as oneself.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

type Owned = bool

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = char

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = f32

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = f64

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = i8

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = i16

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = i32

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = i64

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = i128

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = isize

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = u8

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = u16

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = u32

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = u64

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = u128

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a> IntoOwned<'a> for ()

Source§

type Owned = ()

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = usize

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<i8>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<i16>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<i32>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<i64>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<i128>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

type Owned = Wrapping<isize>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a> IntoOwned<'a> for Duration

Source§

type Owned = Duration

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A> IntoOwned<'a> for (A,)
where A: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned,)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B> IntoOwned<'a> for (A, B)
where A: IntoOwned<'a>, B: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C> IntoOwned<'a> for (A, B, C)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D> IntoOwned<'a> for (A, B, C, D)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned, <D as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D, E> IntoOwned<'a> for (A, B, C, D, E)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>, E: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned, <D as IntoOwned<'a>>::Owned, <E as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D, E, F> IntoOwned<'a> for (A, B, C, D, E, F)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>, E: IntoOwned<'a>, F: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned, <D as IntoOwned<'a>>::Owned, <E as IntoOwned<'a>>::Owned, <F as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D, E, F, G> IntoOwned<'a> for (A, B, C, D, E, F, G)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>, E: IntoOwned<'a>, F: IntoOwned<'a>, G: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned, <D as IntoOwned<'a>>::Owned, <E as IntoOwned<'a>>::Owned, <F as IntoOwned<'a>>::Owned, <G as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D, E, F, G, H> IntoOwned<'a> for (A, B, C, D, E, F, G, H)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>, E: IntoOwned<'a>, F: IntoOwned<'a>, G: IntoOwned<'a>, H: IntoOwned<'a>,

Source§

type Owned = (<A as IntoOwned<'a>>::Owned, <B as IntoOwned<'a>>::Owned, <C as IntoOwned<'a>>::Owned, <D as IntoOwned<'a>>::Owned, <E as IntoOwned<'a>>::Owned, <F as IntoOwned<'a>>::Owned, <G as IntoOwned<'a>>::Owned, <H as IntoOwned<'a>>::Owned)

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> IntoOwned<'a> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
where A: IntoOwned<'a>, B: IntoOwned<'a>, C: IntoOwned<'a>, D: IntoOwned<'a>, E: IntoOwned<'a>, F: IntoOwned<'a>, G: IntoOwned<'a>, H: IntoOwned<'a>, I: IntoOwned<'a>, J: IntoOwned<'a>, K: IntoOwned<'a>, L: IntoOwned<'a>, M: IntoOwned<'a>, N: IntoOwned<'a>, O: IntoOwned<'a>, P: IntoOwned<'a>,

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

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

Source§

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

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, T, E> IntoOwned<'a> for Result<T, E>
where T: IntoOwned<'a>, E: IntoOwned<'a>,

Source§

type Owned = Result<<T as IntoOwned<'a>>::Owned, <E as IntoOwned<'a>>::Owned>

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Source§

impl<'a, T: ToOwned + ?Sized> IntoOwned<'a> for &'a T

Source§

type Owned = <T as ToOwned>::Owned

Source§

fn into_owned(self) -> Self::Owned

Source§

fn clone_onto(self, other: &mut Self::Owned)

Source§

fn borrow_as(owned: &'a Self::Owned) -> Self

Implementors§

Source§

impl<'a, R> IntoOwned<'a> for ReadColumns<'a, R>
where R: Region,

Source§

type Owned = Vec<<R as Region>::Owned>

Source§

impl<'a, R, O> IntoOwned<'a> for ReadSlice<'a, R, O>
where R: Region, O: OffsetContainer<R::Index>,

Source§

type Owned = Vec<<R as Region>::Owned>