Struct aster::method::MethodBuilder
[−]
[src]
pub struct MethodBuilder<F = Identity> { // some fields omitted }
pub struct MethodBuilder<F = Identity> { // some fields omitted }
impl MethodBuilder
impl<F> MethodBuilder<F> where F: Invoke<P<ImplItem>>
fn new_with_callback<I>(id: I, callback: F) -> Self where I: ToIdent
fn span(self, span: Span) -> Self
fn with_attr(self, attr: Attribute) -> Self
fn attr(self) -> AttrBuilder<Self>
fn unsafe_(self) -> Self
fn abi(self, abi: Abi) -> Self
fn vis(self, vis: Visibility) -> Self
fn with_generics(self, generics: Generics) -> Self
fn generics(self) -> GenericsBuilder<Self>
fn self_(self) -> SelfBuilder<Self>
impl<F> Invoke<Attribute> for MethodBuilder<F> where F: Invoke<P<ImplItem>>
impl<F> Invoke<Generics> for MethodBuilder<F> where F: Invoke<P<ImplItem>>
impl<F> Invoke<ExplicitSelf> for MethodBuilder<F> where F: Invoke<P<ImplItem>>
type Result = MethodSelfBuilder<F>
fn invoke(self, explicit_self: ExplicitSelf) -> MethodSelfBuilder<F>
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
)