mono_rs/
exception.rs

1use std::ffi::c_void;
2
3use crate::{bindings::MonoException, void::AsRawVoid};
4
5#[derive(Clone, Debug)]
6struct Exception {
7    pub mono_ptr: *mut MonoException,
8}
9
10impl AsRawVoid for Exception {
11    fn as_raw_void(self) -> *mut c_void {
12        self.mono_ptr as *mut c_void
13    }
14}