Struct aster::method::MethodBuilder [] [src]

pub struct MethodBuilder<F = Identity> {
    // some fields omitted
}

Methods

impl MethodBuilder

fn new<I: ToIdent>(id: I) -> Self

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>

Trait Implementations

impl<F> Invoke<Attribute> for MethodBuilder<F> where F: Invoke<P<ImplItem>>

type Result = Self

fn invoke(self, attr: Attribute) -> Self

impl<F> Invoke<Generics> for MethodBuilder<F> where F: Invoke<P<ImplItem>>

type Result = Self

fn invoke(self, generics: Generics) -> Self

impl<F> Invoke<ExplicitSelf> for MethodBuilder<F> where F: Invoke<P<ImplItem>>

type Result = MethodSelfBuilder<F>

fn invoke(self, explicit_self: ExplicitSelf) -> MethodSelfBuilder<F>