[−][src]Struct rustc_builtin_macros::global_allocator::AllocFnFactory

pub(in global_allocator) 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]

pub(in global_allocator) fn allocator_fn(
    &self,
    method: &AllocatorMethod
) -> Stmt
[src]

pub(in global_allocator) fn call_allocator(
    &self,
    method: Symbol,
    args: Vec<P<Expr>>
) -> P<Expr>
[src]

pub(in global_allocator) fn attrs(
    &self
) -> Vec<Attribute>
[src]

pub(in global_allocator) fn arg_ty(
    &self,
    ty: &AllocatorTy,
    args: &mut Vec<Param>,
    ident: &mut dyn FnMut() -> Ident
) -> P<Expr>
[src]

pub(in global_allocator) fn ret_ty(
    &self,
    ty: &AllocatorTy,
    expr: P<Expr>
) -> (P<Ty>, P<Expr>)
[src]

pub(in global_allocator) fn usize(
    &self
) -> P<Ty>
[src]

pub(in global_allocator) 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.