Objects that can be converted into an owned version.
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,
}| Name | Description |
|---|---|
| Owned | The type of the owned version. |
| Receiver | Name | Description |
|---|---|---|
&self | to_owned | Converts the object into its owned version. |
&self | to_owned_with_pool | Converts the object into its owned version. |