Struct aster::variant::VariantBuilder
[−]
[src]
pub struct VariantBuilder<F = Identity> { // some fields omitted }
pub struct VariantBuilder<F = Identity> { // some fields omitted }
impl VariantBuilder
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
impl<F> Invoke<Attribute> for VariantBuilder<F> where F: Invoke<P<Variant>>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)