Struct simics_api_sys::bindings::class_info
source · #[repr(C)]pub struct class_info {
pub alloc: Option<unsafe extern "C" fn(cls: *mut conf_class_t) -> *mut conf_object_t>,
pub init: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut lang_void>,
pub finalize: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub objects_finalized: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub deinit: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub dealloc: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub description: *const c_char,
pub short_desc: *const c_char,
pub kind: class_kind_t,
}
Fields§
§alloc: Option<unsafe extern "C" fn(cls: *mut conf_class_t) -> *mut conf_object_t>
§init: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut lang_void>
§finalize: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§objects_finalized: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§deinit: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§dealloc: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§description: *const c_char
§short_desc: *const c_char
§kind: class_kind_t
Trait Implementations§
source§impl Clone for class_info
impl Clone for class_info
source§fn clone(&self) -> class_info
fn clone(&self) -> class_info
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_info
impl Debug for class_info
source§impl Default for class_info
impl Default for class_info
source§impl Hash for class_info
impl Hash for class_info
source§impl Ord for class_info
impl Ord for class_info
source§fn cmp(&self, other: &class_info) -> Ordering
fn cmp(&self, other: &class_info) -> 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_info
impl PartialEq for class_info
source§impl PartialOrd for class_info
impl PartialOrd for class_info
impl Copy for class_info
impl Eq for class_info
impl StructuralPartialEq for class_info
Auto Trait Implementations§
impl Freeze for class_info
impl RefUnwindSafe for class_info
impl !Send for class_info
impl !Sync for class_info
impl Unpin for class_info
impl UnwindSafe for class_info
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
)