Struct rustc_builtin_macros::global_allocator::AllocFnFactory [−][src]
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]
&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,
impl<'a, 'b> !UnwindSafe for AllocFnFactory<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,