Struct aster::struct_def::StructDefBuilder
[−]
[src]
pub struct StructDefBuilder<F = Identity> { // some fields omitted }
pub struct StructDefBuilder<F = Identity> { // some fields omitted }
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
impl<F> Invoke<StructField> for StructDefBuilder<F> where F: Invoke<P<StructDef>>
type Result = Self
fn 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
)