Struct NamedArg
pub struct NamedArg { pub attrs: Vec<Attribute>, pub name: Option<(Ident, Colon)>, pub ty: Type }
An argument in a function type: the usize in fn(usize) -> bool.
Fields
attrs: Vec<Attribute>name: Option<(Ident, Colon)>ty: Type
Trait Implementations
impl Clone for NamedArg
fn clone(&self) -> Self
impl Parse for NamedArg
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for NamedArg
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for NamedArg
impl !Sync for NamedArg
impl Freeze for NamedArg
impl RefUnwindSafe for NamedArg
impl Unpin for NamedArg
impl UnsafeUnpin for NamedArg
impl UnwindSafe for NamedArg
Blanket Implementations
impl<T> Any for NamedArg
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NamedArg
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NamedArg
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NamedArg
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NamedArg
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for NamedArg
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for NamedArg
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NamedArg
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 NamedArg
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NamedArg
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>