pub struct FFMpegAllocator;Expand description
Allocator backed by the ffmpeg memory allocation functions.
Must be set as a global allocator with:
#[global_allocator]
static ALLOCATOR: FFMpegAllocator = FFMpegAllocator;Trait Implementations§
Source§impl GlobalAlloc for FFMpegAllocator
impl GlobalAlloc for FFMpegAllocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for FFMpegAllocator
impl RefUnwindSafe for FFMpegAllocator
impl Send for FFMpegAllocator
impl Sync for FFMpegAllocator
impl Unpin for FFMpegAllocator
impl UnwindSafe for FFMpegAllocator
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