Trait lightningcss::traits::IntoOwned
source · pub trait IntoOwned<'any> {
type Owned: 'any;
// Required method
fn into_owned(self) -> Self::Owned;
}
Expand description
A trait for things that can be cloned with a new lifetime.
'any
lifeitme means the output should have 'static
lifetime.
Required Associated Types§
Required Methods§
sourcefn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Make lifetime of self
'static
.
Implementations on Foreign Types§
source§impl<'any> IntoOwned<'any> for AttrSelectorOperator
impl<'any> IntoOwned<'any> for AttrSelectorOperator
type Owned = AttrSelectorOperator
fn into_owned(self) -> AttrSelectorOperator
source§impl<'any> IntoOwned<'any> for ParsedCaseSensitivity
impl<'any> IntoOwned<'any> for ParsedCaseSensitivity
type Owned = ParsedCaseSensitivity
fn into_owned(self) -> ParsedCaseSensitivity
source§impl<'any> IntoOwned<'any> for NthSelectorData
impl<'any> IntoOwned<'any> for NthSelectorData
type Owned = NthSelectorData
fn into_owned(self) -> NthSelectorData
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for Component<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
<Impl as SelectorImpl<'i>>::Identifier: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::Identifier>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
<Impl as SelectorImpl<'i>>::AttrValue: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::AttrValue>,
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NonTSPseudoClass>,
<Impl as SelectorImpl<'i>>::NamespaceUrl: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespaceUrl>,
<Impl as SelectorImpl<'i>>::PseudoElement: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::PseudoElement>,
<Impl as SelectorImpl<'i>>::VendorPrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::VendorPrefix>,
<Impl as SelectorImpl<'i>>::NamespacePrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespacePrefix>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for Component<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
<Impl as SelectorImpl<'i>>::Identifier: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::Identifier>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
<Impl as SelectorImpl<'i>>::AttrValue: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::AttrValue>,
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::NonTSPseudoClass: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NonTSPseudoClass>,
<Impl as SelectorImpl<'i>>::NamespaceUrl: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespaceUrl>,
<Impl as SelectorImpl<'i>>::PseudoElement: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::PseudoElement>,
<Impl as SelectorImpl<'i>>::VendorPrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::VendorPrefix>,
<Impl as SelectorImpl<'i>>::NamespacePrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespacePrefix>,
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for AttrSelectorWithOptionalNamespace<'i, Impl>where
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
<Impl as SelectorImpl<'i>>::NamespacePrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespacePrefix>,
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
<Impl as SelectorImpl<'i>>::NamespaceUrl: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespaceUrl>,
<Impl as SelectorImpl<'i>>::AttrValue: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::AttrValue>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for AttrSelectorWithOptionalNamespace<'i, Impl>where
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
<Impl as SelectorImpl<'i>>::NamespacePrefix: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespacePrefix>,
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
<Impl as SelectorImpl<'i>>::NamespaceUrl: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::NamespaceUrl>,
<Impl as SelectorImpl<'i>>::AttrValue: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::AttrValue>,
type Owned = AttrSelectorWithOptionalNamespace<'any, NewSel>
fn into_owned( self ) -> <AttrSelectorWithOptionalNamespace<'i, Impl> as IntoOwned<'any>>::Owned
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for LocalName<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for LocalName<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
<Impl as SelectorImpl<'i>>::LocalName: IntoOwned<'any, Owned = <NewSel as SelectorImpl<'any>>::LocalName>,
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for NthOfSelectorData<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for NthOfSelectorData<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
type Owned = NthOfSelectorData<'any, NewSel>
fn into_owned(self) -> <NthOfSelectorData<'i, Impl> as IntoOwned<'any>>::Owned
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for Selector<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for Selector<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
source§impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for SelectorList<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
impl<'any, 'i, Impl, NewSel> IntoOwned<'any> for SelectorList<'i, Impl>where
Impl: SelectorImpl<'i> + IntoOwned<'any, Owned = NewSel>,
NewSel: SelectorImpl<'any>,
Component<'i, Impl>: IntoOwned<'any, Owned = Component<'any, NewSel>>,
type Owned = SelectorList<'any, NewSel>
fn into_owned(self) -> <SelectorList<'i, Impl> as IntoOwned<'any>>::Owned
source§impl<'any, A, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<'any, A, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (A, B, C, D, E, F, G, H, I, J, K, L)
type Owned = (<A as IntoOwned<'any>>::Owned, <B as IntoOwned<'any>>::Owned, <C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned( self ) -> <(A, B, C, D, E, F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, AttrValue> IntoOwned<'any> for ParsedAttrSelectorOperation<AttrValue>where
AttrValue: IntoOwned<'any>,
impl<'any, AttrValue> IntoOwned<'any> for ParsedAttrSelectorOperation<AttrValue>where
AttrValue: IntoOwned<'any>,
source§fn into_owned(
self
) -> <ParsedAttrSelectorOperation<AttrValue> as IntoOwned<'any>>::Owned
fn into_owned( self ) -> <ParsedAttrSelectorOperation<AttrValue> as IntoOwned<'any>>::Owned
Consumes the value and returns an owned clone.
type Owned = ParsedAttrSelectorOperation<<AttrValue as IntoOwned<'any>>::Owned>
source§impl<'any, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (B, C, D, E, F, G, H, I, J, K, L)
impl<'any, B, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (B, C, D, E, F, G, H, I, J, K, L)
type Owned = (<B as IntoOwned<'any>>::Owned, <C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned( self ) -> <(B, C, D, E, F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (C, D, E, F, G, H, I, J, K, L)
impl<'any, C, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (C, D, E, F, G, H, I, J, K, L)
type Owned = (<C as IntoOwned<'any>>::Owned, <D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned( self ) -> <(C, D, E, F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (D, E, F, G, H, I, J, K, L)
impl<'any, D, E, F, G, H, I, J, K, L> IntoOwned<'any> for (D, E, F, G, H, I, J, K, L)
type Owned = (<D as IntoOwned<'any>>::Owned, <E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned(self) -> <(D, E, F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, E, F, G, H, I, J, K, L> IntoOwned<'any> for (E, F, G, H, I, J, K, L)
impl<'any, E, F, G, H, I, J, K, L> IntoOwned<'any> for (E, F, G, H, I, J, K, L)
type Owned = (<E as IntoOwned<'any>>::Owned, <F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned(self) -> <(E, F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, F, G, H, I, J, K, L> IntoOwned<'any> for (F, G, H, I, J, K, L)
impl<'any, F, G, H, I, J, K, L> IntoOwned<'any> for (F, G, H, I, J, K, L)
type Owned = (<F as IntoOwned<'any>>::Owned, <G as IntoOwned<'any>>::Owned, <H as IntoOwned<'any>>::Owned, <I as IntoOwned<'any>>::Owned, <J as IntoOwned<'any>>::Owned, <K as IntoOwned<'any>>::Owned, <L as IntoOwned<'any>>::Owned)
fn into_owned(self) -> <(F, G, H, I, J, K, L) as IntoOwned<'any>>::Owned
source§impl<'any, G, H, I, J, K, L> IntoOwned<'any> for (G, H, I, J, K, L)
impl<'any, G, H, I, J, K, L> IntoOwned<'any> for (G, H, I, J, K, L)
source§impl<'any, H, I, J, K, L> IntoOwned<'any> for (H, I, J, K, L)
impl<'any, H, I, J, K, L> IntoOwned<'any> for (H, I, J, K, L)
source§impl<'any, I, J, K, L> IntoOwned<'any> for (I, J, K, L)
impl<'any, I, J, K, L> IntoOwned<'any> for (I, J, K, L)
source§impl<'any, NamespaceUrl> IntoOwned<'any> for NamespaceConstraint<NamespaceUrl>where
NamespaceUrl: IntoOwned<'any>,
impl<'any, NamespaceUrl> IntoOwned<'any> for NamespaceConstraint<NamespaceUrl>where
NamespaceUrl: IntoOwned<'any>,
source§fn into_owned(
self
) -> <NamespaceConstraint<NamespaceUrl> as IntoOwned<'any>>::Owned
fn into_owned( self ) -> <NamespaceConstraint<NamespaceUrl> as IntoOwned<'any>>::Owned
Consumes the value and returns an owned clone.