Trait IntoOwned

Source
pub trait IntoOwned: Clone + 'static {
    type Owned;
    type Table;

    // Required method
    fn into_owned(self, table: &Self::Table) -> Result<Self::Owned>;
}
Expand description

Trait for resolving a reference through entity id

Required Associated Types§

Required Methods§

Source

fn into_owned(self, table: &Self::Table) -> Result<Self::Owned>

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<T: IntoOwned> IntoOwned for Vec<T>

Source§

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

Source§

type Table = <T as IntoOwned>::Table

Source§

fn into_owned(self, table: &Self::Table) -> Result<Self::Owned>

Implementors§