Struct aster::ty_param::PolyTraitRefBuilder [] [src]

pub struct PolyTraitRefBuilder<F> {
    // some fields omitted
}

Methods

impl<F> PolyTraitRefBuilder<F> where F: Invoke<PolyTraitRef>

fn new_with_callback<P>(path: P, callback: F) -> Self where P: IntoPath

fn span(self, span: Span) -> Self

fn with_lifetime<L>(self, lifetime: L) -> Self where L: IntoLifetimeDef

fn lifetime<N>(self, name: N) -> LifetimeDefBuilder<Self> where N: ToName

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<LifetimeDef> for PolyTraitRefBuilder<F> where F: Invoke<PolyTraitRef>

type Result = Self

fn invoke(self, lifetime: LifetimeDef) -> Self