Enum CapturedParam
#[non_exhaustive]
pub enum CapturedParam
Single parameter in a precise capturing bound.
Variants
-
Lifetime(Lifetime) A lifetime parameter in precise capturing bound:
fn f<'a>() -> impl Trait + use<'a>.-
Ident(Ident) A type parameter or const generic parameter in precise capturing bound:
fn f<T>() -> impl Trait + use<T>orfn f<const K: T>() -> impl Trait + use<K>.
Trait Implementations
impl Clone for CapturedParam
fn clone(&self) -> Self
impl Parse for CapturedParam
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for CapturedParam
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for CapturedParam
impl !Sync for CapturedParam
impl Freeze for CapturedParam
impl RefUnwindSafe for CapturedParam
impl Unpin for CapturedParam
impl UnsafeUnpin for CapturedParam
impl UnwindSafe for CapturedParam
Blanket Implementations
impl<T> Any for CapturedParam
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CapturedParam
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CapturedParam
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CapturedParam
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CapturedParam
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for CapturedParam
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for CapturedParam
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for CapturedParam
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CapturedParam
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CapturedParam
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>