Struct aster::ty::TyBuilder [] [src]

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

Methods

impl TyBuilder

fn new() -> Self

impl<F> TyBuilder<F> where F: Invoke<P<Ty>>

fn new_with_callback(callback: F) -> Self

fn build(self, ty: P<Ty>) -> F::Result

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

fn build_ty_(self, ty_: Ty_) -> F::Result

fn id<I>(self, id: I) -> F::Result where I: ToIdent

fn build_path(self, path: Path) -> F::Result

fn build_qpath(self, qself: QSelf, path: Path) -> F::Result

fn path(self) -> PathBuilder<TyPathBuilder<F>>

fn qpath(self) -> QPathBuilder<TyQPathBuilder<F>>

fn isize(self) -> F::Result

fn i8(self) -> F::Result

fn i16(self) -> F::Result

fn i32(self) -> F::Result

fn i64(self) -> F::Result

fn usize(self) -> F::Result

fn u8(self) -> F::Result

fn u16(self) -> F::Result

fn u32(self) -> F::Result

fn u64(self) -> F::Result

fn unit(self) -> F::Result

fn tuple(self) -> TyTupleBuilder<F>

fn build_slice(self, ty: P<Ty>) -> F::Result

fn slice(self) -> TyBuilder<TySliceBuilder<F>>

fn ref_(self) -> TyRefBuilder<F>

fn infer(self) -> F::Result

fn option(self) -> TyBuilder<TyOptionBuilder<F>>

fn result(self) -> TyBuilder<TyResultOkBuilder<F>>

fn phantom_data(self) -> TyBuilder<TyPhantomDataBuilder<F>>