Trait rocket::http::ext::IntoOwned [−]
pub trait IntoOwned { type Owned: 'static; fn into_owned(self) -> Self::Owned; }
Expand description
Trait implemented by types that can be converted into owned versions of themselves.
Associated Types
type Owned: 'static
type Owned: 'static
The owned version of the type.
Required methods
fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Converts self
into an owned version of itself.
Implementations on Foreign Types
impl<'a, B> IntoOwned for Cow<'a, B> where
B: 'static + ToOwned + ?Sized,
impl<'a, B> IntoOwned for Cow<'a, B> where
B: 'static + ToOwned + ?Sized,
impl<T> IntoOwned for Option<T> where
T: IntoOwned,
impl<T> IntoOwned for Option<T> where
T: IntoOwned,