Struct rustc_builtin_macros::global_allocator::AllocFnFactory [−][src]
struct AllocFnFactory<'a, 'b> {
span: Span,
kind: AllocatorKind,
global: Ident,
cx: &'b ExtCtxt<'a>,
}Fields
span: Spankind: AllocatorKindglobal: Identcx: &'b ExtCtxt<'a>Implementations
impl AllocFnFactory<'_, '_>[src]
impl AllocFnFactory<'_, '_>[src]fn allocator_fn(&self, method: &AllocatorMethod) -> Stmt[src]
fn call_allocator(&self, method: Symbol, args: Vec<P<Expr>>) -> P<Expr>[src]
fn attrs(&self) -> Vec<Attribute>[src]
fn arg_ty(
&self,
ty: &AllocatorTy,
args: &mut Vec<Param>,
ident: &mut dyn FnMut() -> Ident
) -> P<Expr>[src]
&self,
ty: &AllocatorTy,
args: &mut Vec<Param>,
ident: &mut dyn FnMut() -> Ident
) -> P<Expr>
fn ret_ty(&self, ty: &AllocatorTy, expr: P<Expr>) -> (P<Ty>, P<Expr>)[src]
fn usize(&self) -> P<Ty>[src]
fn ptr_u8(&self) -> P<Ty>[src]
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for AllocFnFactory<'a, 'b>
impl<'a, 'b> !Send for AllocFnFactory<'a, 'b>
impl<'a, 'b> !Sync for AllocFnFactory<'a, 'b>
impl<'a, 'b> Unpin for AllocFnFactory<'a, 'b> where
'a: 'b,
'a: 'b,