Struct aster::item::ItemEnumBuilder [] [src]

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

Methods

impl<F> ItemEnumBuilder<F> where F: Invoke<P<Item>>

fn generics(self) -> GenericsBuilder<Self>

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

fn with_variant(self, variant: P<Variant>) -> Self

fn with_variant_(self, variant: Variant_) -> Self

fn ids<I, T>(self, ids: I) -> Self where I: IntoIterator<Item=T>, T: ToIdent

fn id<T>(self, id: T) -> Self where T: ToIdent

fn tuple<T>(self, id: T) -> VariantTupleBuilder<Self> where T: ToIdent

fn struct_<T>(self, id: T) -> StructDefBuilder<VariantStructBuilder<Self>> where T: ToIdent

fn variant<T>(self, id: T) -> VariantBuilder<Self> where T: ToIdent

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<Generics> for ItemEnumBuilder<F> where F: Invoke<P<Item>>

type Result = Self

fn invoke(self, generics: Generics) -> Self

impl<F> Invoke<P<Variant>> for ItemEnumBuilder<F> where F: Invoke<P<Item>>

type Result = Self

fn invoke(self, variant: P<Variant>) -> Self