Struct aster::variant::VariantBuilder [] [src]

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

Methods

impl VariantBuilder

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

impl<F> VariantBuilder<F> where F: Invoke<P<Variant>>

fn new_with_callback<T>(id: T, callback: F) -> Self where T: ToIdent

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

fn attr(self) -> AttrBuilder<Self>

fn tuple(self) -> VariantTupleBuilder<F>

fn struct_(self) -> StructDefBuilder<VariantStructBuilder<F>>

fn build_variant_kind(self, kind: VariantKind) -> F::Result

fn build_variant_(self, variant: Variant_) -> F::Result

fn build(self, variant: P<Variant>) -> F::Result

Trait Implementations

impl<F> Invoke<Attribute> for VariantBuilder<F> where F: Invoke<P<Variant>>

type Result = Self

fn invoke(self, attr: Attribute) -> Self