Struct aster::struct_def::StructDefBuilder [] [src]

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

Methods

impl StructDefBuilder

fn new() -> Self

impl<F> StructDefBuilder<F> where F: Invoke<P<StructDef>>

fn new_with_callback(callback: F) -> Self

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

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 StructDefBuilder<F> where F: Invoke<P<StructDef>>

type Result = Self

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