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]

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]

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, 

impl<'a, 'b> !UnwindSafe for AllocFnFactory<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.