Struct simics_api_sys::class_data
source · #[repr(C)]pub struct class_data {
pub alloc_object: Option<unsafe extern "C" fn(data: *mut lang_void) -> *mut conf_object_t>,
pub init_object: Option<unsafe extern "C" fn(obj: *mut conf_object_t, data: *mut lang_void) -> *mut lang_void>,
pub finalize_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub pre_delete_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub delete_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
pub description: *const c_char,
pub class_desc: *const c_char,
pub kind: class_kind_t,
}
Fields§
§alloc_object: Option<unsafe extern "C" fn(data: *mut lang_void) -> *mut conf_object_t>
§init_object: Option<unsafe extern "C" fn(obj: *mut conf_object_t, data: *mut lang_void) -> *mut lang_void>
§finalize_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§pre_delete_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§delete_instance: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
§description: *const c_char
§class_desc: *const c_char
§kind: class_kind_t
Trait Implementations§
source§impl Clone for class_data
impl Clone for class_data
source§fn clone(&self) -> class_data
fn clone(&self) -> class_data
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for class_data
impl Debug for class_data
source§impl Default for class_data
impl Default for class_data
source§impl Hash for class_data
impl Hash for class_data
source§impl Ord for class_data
impl Ord for class_data
source§fn cmp(&self, other: &class_data) -> Ordering
fn cmp(&self, other: &class_data) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for class_data
impl PartialEq for class_data
source§impl PartialOrd for class_data
impl PartialOrd for class_data
impl Copy for class_data
impl Eq for class_data
impl StructuralPartialEq for class_data
Auto Trait Implementations§
impl Freeze for class_data
impl RefUnwindSafe for class_data
impl !Send for class_data
impl !Sync for class_data
impl Unpin for class_data
impl UnwindSafe for class_data
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)