Struct aster::ty_param::TyParamBuilder [] [src]

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

Methods

impl TyParamBuilder

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

fn from_ty_param(ty_param: TyParam) -> Self

impl<F> TyParamBuilder<F> where F: Invoke<TyParam>

fn new_with_callback<I>(id: I, callback: F) -> Self where I: ToIdent

fn from_ty_param_with_callback(callback: F, ty_param: TyParam) -> Self

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

fn with_default(self, ty: P<Ty>) -> Self

fn with_trait_bound(self, trait_ref: PolyTraitRef) -> Self

fn trait_bound<P>(self, path: P) -> PolyTraitRefBuilder<Self> where P: IntoPath

fn lifetime_bound<L>(self, lifetime: L) -> Self where L: IntoLifetime

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<PolyTraitRef> for TyParamBuilder<F> where F: Invoke<TyParam>

type Result = Self

fn invoke(self, trait_ref: PolyTraitRef) -> Self