Trait flex_alloc::borrow::ToOwnedIn
source · pub trait ToOwnedIn<A: RawAlloc> {
type Owned: Borrow<Self>;
// Required method
fn try_to_owned_in<I>(
&self,
alloc_in: I,
) -> Result<Self::Owned, StorageError>
where I: RawAllocIn<RawAlloc = A>;
// Provided method
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Owned
where I: RawAllocIn<RawAlloc = A> { ... }
}Required Associated Types§
Required Methods§
fn try_to_owned_in<I>(&self, alloc_in: I) -> Result<Self::Owned, StorageError>where
I: RawAllocIn<RawAlloc = A>,
Provided Methods§
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: RawAllocIn<RawAlloc = A>,
Object Safety§
This trait is not object safe.