Struct aster::attr::AttrBuilder [] [src]

pub struct AttrBuilder<F = Identity> {
    // some fields omitted
}

Methods

impl AttrBuilder

fn new() -> Self

impl<F> AttrBuilder<F> where F: Invoke<Attribute>

fn new_with_callback(callback: F) -> Self

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

fn inner(self) -> Self

fn build_meta_item(self, item: P<MetaItem>) -> F::Result

fn build_meta_item_(self, item: MetaItem_) -> F::Result

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

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

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

fn automatically_derived(self) -> F::Result

fn inline(self) -> F::Result

fn test(self) -> F::Result

fn allow<I, T>(self, iter: I) -> F::Result where I: IntoIterator<Item=T>, T: ToInternedString

fn warn<I, T>(self, iter: I) -> F::Result where I: IntoIterator<Item=T>, T: ToInternedString

fn deny<I, T>(self, iter: I) -> F::Result where I: IntoIterator<Item=T>, T: ToInternedString

fn features<I, T>(self, iter: I) -> F::Result where I: IntoIterator<Item=T>, T: ToInternedString

fn plugins<I, T>(self, iter: I) -> F::Result where I: IntoIterator<Item=T>, T: ToInternedString

fn doc<T>(self, doc: T) -> F::Result where T: ToInternedString

Create a #[doc = "..."] node. Note that callers of this must make sure to prefix their comments with either "///" or "/**" if an outer comment, or "//!" or "/*!" if an inner comment.

Trait Implementations

impl<F> Invoke<P<MetaItem>> for AttrBuilder<F> where F: Invoke<Attribute>

type Result = F::Result

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

impl<F> Invoke<MetaItem_> for AttrBuilder<F> where F: Invoke<Attribute>

type Result = F::Result

fn invoke(self, item: MetaItem_) -> F::Result