[][src]Struct tamasfe_macro_utils::attr::AttrParams

pub struct AttrParams(_);

Implementations

impl AttrParams[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn iter(&self) -> impl Iterator<Item = &AttrParam>[src]

pub fn no_duplicates(&self)[src]

Shows compile errors for duplicate names.

pub fn no_duplicates_by<F: Fn(&Ident) -> bool>(&self, f: F)[src]

f should return true if the ident is not allowed to be a duplicate.

pub fn retain_known<F: Fn(&Ident) -> bool>(&self, f: F)[src]

pub fn has_named(&self) -> bool[src]

pub fn no_unnamed(&self)[src]

pub fn no_names_mixed(&self)[src]

Shows compile errors if named parameters are mixed with unnamed ones.

Trait Implementations

impl Clone for AttrParams[src]

impl Debug for AttrParams[src]

impl IntoIterator for AttrParams[src]

type Item = AttrParam

The type of the elements being iterated over.

type IntoIter = IntoIter<AttrParam>

Which kind of iterator are we turning this into?

impl Parse for AttrParams[src]

impl ToTokens for AttrParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Spanned for T where
    T: Spanned + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.