Struct aster::struct_def::StructFieldBuilder
[−]
[src]
pub struct StructFieldBuilder<F = Identity> { // some fields omitted }
pub struct StructFieldBuilder<F = Identity> { // some fields omitted }
impl StructFieldBuilder
impl<F> StructFieldBuilder<F> where F: Invoke<StructField>
fn named_with_callback<T>(id: T, callback: F) -> Self where T: ToIdent
fn unnamed_with_callback(callback: F) -> Self
fn span(self, span: Span) -> Self
fn pub_(self) -> Self
fn attr(self) -> AttrBuilder<Self>
fn build_ty(self, ty: P<Ty>) -> F::Result
fn ty(self) -> TyBuilder<Self>
impl<F> Invoke<Attribute> for StructFieldBuilder<F>
impl<F> Invoke<P<Ty>> for StructFieldBuilder<F> where F: Invoke<StructField>
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
)