Trait lrs::prelude::v1::ToOwned

Objects that can be converted into an owned version.

Syntax

trait ToOwned<H = Libc>
    where H: Allocator,
{
    type Owned;

    /* Required methods */
    fn to_owned_with_pool(&self, pool: <H as Allocator>::Pool) -> Result<<Self as ToOwned<H>>::Owned, Errno>

    /* Provided methods */
    fn to_owned(&self) -> Result<<Self as ToOwned<H>>::Owned, Errno>
        where <H as Allocator>::Pool: Default,
}

Associated types

NameDescription
Owned

The type of the owned version.

Methods

ReceiverNameDescription
&selfto_owned

Converts the object into its owned version.

&selfto_owned_with_pool

Converts the object into its owned version.