rocket::http::ext

Trait IntoOwned

Source
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§

Source

type Owned: 'static

The owned version of the type.

Required Methods§

Source

fn into_owned(self) -> Self::Owned

Converts self into an owned version of itself.

Implementations on Foreign Types§

Source§

impl IntoOwned for i8

Source§

impl IntoOwned for i16

Source§

impl IntoOwned for i32

Source§

impl IntoOwned for i64

Source§

impl IntoOwned for isize

Source§

impl IntoOwned for u8

Source§

impl IntoOwned for u16

Source§

impl IntoOwned for u32

Source§

impl IntoOwned for u64

Source§

impl IntoOwned for usize

Source§

impl<A, B> IntoOwned for (A, B)
where A: IntoOwned, B: IntoOwned,

Source§

impl<B> IntoOwned for Cow<'_, B>
where B: 'static + ToOwned + ?Sized,

Source§

type Owned = Cow<'static, B>

Source§

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

Source§

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

Source§

impl<T> IntoOwned for InitCell<T>
where T: IntoOwned + Send + Sync, <T as IntoOwned>::Owned: Send + Sync,

Source§

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

Implementors§

Source§

impl IntoOwned for ErrorKind<'_>

Source§

type Owned = ErrorKind<'static>

Source§

impl IntoOwned for Uri<'_>

Source§

type Owned = Uri<'static>

Source§

impl IntoOwned for NameBuf<'_>

Source§

type Owned = NameBuf<'static>

Source§

impl IntoOwned for rocket::form::Error<'_>

Source§

type Owned = Error<'static>

Source§

impl IntoOwned for Errors<'_>

Source§

type Owned = Errors<'static>

Source§

impl IntoOwned for Absolute<'_>

Source§

type Owned = Absolute<'static>

Source§

impl IntoOwned for Authority<'_>

Source§

type Owned = Authority<'static>

Source§

impl IntoOwned for rocket::http::uri::Error<'_>

Source§

type Owned = Error<'static>

Source§

impl IntoOwned for Host<'_>

Source§

type Owned = Host<'static>

Source§

impl IntoOwned for Origin<'_>

Source§

type Owned = Origin<'static>

Source§

impl IntoOwned for Reference<'_>

Source§

type Owned = Reference<'static>