Struct aster::attr::AttrListBuilder [] [src]

pub struct AttrListBuilder<F> {
    // some fields omitted
}

Methods

impl<F> AttrListBuilder<F> where F: Invoke<P<MetaItem>>

fn new_with_callback<T>(name: T, callback: F) -> Self where T: ToInternedString

fn span(self, span: Span) -> Self

fn with_meta_items<I>(self, iter: I) -> Self where I: IntoIterator<Item=P<MetaItem>>

fn with_meta_items_<I>(self, iter: I) -> Self where I: IntoIterator<Item=MetaItem_>

fn with_meta_item(self, item: P<MetaItem>) -> Self

fn with_meta_item_(self, item: MetaItem_) -> Self

fn words<I, T>(self, iter: I) -> Self where I: IntoIterator<Item=T>, T: ToInternedString

fn word<T>(self, word: T) -> Self where T: ToInternedString

fn list<T>(self, name: T) -> AttrListBuilder<Self> where T: ToInternedString

fn name_value<T>(self, name: T) -> LitBuilder<AttrNameValueBuilder<Self>> where T: ToInternedString

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<P<MetaItem>> for AttrListBuilder<F> where F: Invoke<P<MetaItem>>

type Result = Self

fn invoke(self, item: P<MetaItem>) -> Self

impl<F> Invoke<MetaItem_> for AttrListBuilder<F> where F: Invoke<P<MetaItem>>

type Result = Self

fn invoke(self, item: MetaItem_) -> Self