Struct aster::variant_data::VariantDataStructBuilder [] [src]

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

Methods

impl<F> VariantDataStructBuilder<F> where F: Invoke<VariantData>

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

fn with_field(self, field: StructField) -> Self

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

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<StructField> for VariantDataStructBuilder<F> where F: Invoke<VariantData>

type Result = Self

fn invoke(self, field: StructField) -> Self