Struct aster::struct_def::StructDefBuilder
[−]
[src]
pub struct StructDefBuilder<F = Identity> {
// some fields omitted
}pub struct StructDefBuilder<F = Identity> {
// some fields omitted
}impl StructDefBuilderfn new() -> Selfimpl<F> StructDefBuilder<F> where F: Invoke<P<StructDef>>fn new_with_callback(callback: F) -> Selffn span(self, span: Span) -> Selffn with_fields<I>(self, iter: I) -> Self where I: IntoIterator<Item=StructField>fn with_field(self, field: StructField) -> Selffn field<T>(self, id: T) -> StructFieldBuilder<Self> where T: ToIdentfn build(self) -> F::Resultimpl<F> Invoke<StructField> for StructDefBuilder<F> where F: Invoke<P<StructDef>>type Result = Selffn invoke(self, field: StructField) -> Self
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)