Struct executorch_sys::torch::executor::util::MallocMemoryAllocator
source · #[repr(C, align(8))]pub struct MallocMemoryAllocator {
pub _bindgen_opaque_blob: [u64; 8],
}Expand description
Dynamically allocates memory using malloc() and frees all pointers at destruction time.
For systems with malloc(), this can be easier than using a fixed-sized MemoryAllocator.
Fields§
§_bindgen_opaque_blob: [u64; 8]Trait Implementations§
Auto Trait Implementations§
impl Freeze for MallocMemoryAllocator
impl RefUnwindSafe for MallocMemoryAllocator
impl Send for MallocMemoryAllocator
impl Sync for MallocMemoryAllocator
impl Unpin for MallocMemoryAllocator
impl UnwindSafe for MallocMemoryAllocator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more