Struct torch::THAllocator [] [src]

#[repr(C)]
pub struct THAllocator { pub malloc: Option<unsafe extern "C" fn(_: *mut c_void, _: isize) -> *mut c_void>, pub realloc: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void, _: isize) -> *mut c_void>, pub free: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>, }

Fields

Trait Implementations

impl Copy for THAllocator
[src]

impl Clone for THAllocator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more