Trait rocket::http::ext::IntoOwned[][src]

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[src]

The owned version of the type.

Required methods

fn into_owned(self) -> Self::Owned[src]

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
[src]

type Owned = Cow<'static, B>

pub fn into_owned(self) -> <Cow<'a, B> as IntoOwned>::Owned[src]

impl<T> IntoOwned for Option<T> where
    T: IntoOwned
[src]

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

pub fn into_owned(self) -> <Option<T> as IntoOwned>::Owned[src]

Implementors

impl<'a> IntoOwned for Uri<'a>[src]

type Owned = Uri<'static>

pub fn into_owned(self) -> Uri<'static>[src]

impl<'a> IntoOwned for Absolute<'a>[src]

type Owned = Absolute<'static>

pub fn into_owned(self) -> <Absolute<'a> as IntoOwned>::Owned[src]

impl<'a> IntoOwned for Authority<'a>[src]

type Owned = Authority<'static>

pub fn into_owned(self) -> Authority<'static>[src]

impl<'a> IntoOwned for Error<'a>[src]

type Owned = Error<'static>

pub fn into_owned(self) -> <Error<'a> as IntoOwned>::Owned[src]

impl<'a> IntoOwned for Origin<'a>[src]

type Owned = Origin<'static>

pub fn into_owned(self) -> Origin<'static>[src]