#[repr(i32)]pub enum InitError {
MisalignedHeap = 1,
HeapTooSmall = 2,
}Expand description
Why CadAlloc::init could not prepare the heap.
#[repr(i32)], so it is FFI-safe and each variant’s discriminant is the
status code the export_c_api! init shim returns
(success is 0).
Variants§
MisalignedHeap = 1
The heap base address is not aligned to MIN_ALIGN.
HeapTooSmall = 2
The heap is too small to hold the control region.
Trait Implementations§
impl Copy for InitError
impl Eq for InitError
impl StructuralPartialEq for InitError
Auto Trait Implementations§
impl Freeze for InitError
impl RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl UnsafeUnpin for InitError
impl UnwindSafe for InitError
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