Trait rocket::http::ext::IntoOwned

pub trait IntoOwned {
    type Owned: 'static;

    // Required method
    fn into_owned(self) -> Self::Owned;
}
Expand description

Trait implemented by types that can be converted into owned versions of themselves.

Required Associated Types§

type Owned: 'static

The owned version of the type.

Required Methods§

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,

§

type Owned = Cow<'static, B>

§

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

§

impl<T> IntoOwned for Option<T>
where T: IntoOwned,

§

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

§

fn into_owned(self) -> <Option<T> as IntoOwned>::Owned

Implementors§

§

impl<'a> IntoOwned for Uri<'a>

§

type Owned = Uri<'static>

§

impl<'a> IntoOwned for Absolute<'a>

§

type Owned = Absolute<'static>

§

impl<'a> IntoOwned for Authority<'a>

§

type Owned = Authority<'static>

§

impl<'a> IntoOwned for Error<'a>

§

type Owned = Error<'static>

§

impl<'a> IntoOwned for Origin<'a>

§

type Owned = Origin<'static>