Struct simics_api_sys::struct_member
source · #[repr(C)]pub struct struct_member {
pub name: *const c_char,
pub set: Option<unsafe extern "C" fn(c_struct: *mut c_void, member: *const struct_member, pysrc: *mut _object) -> c_int>,
pub get: Option<unsafe extern "C" fn(c_struct: *mut c_void, object: *mut conf_object_t, member: *const struct_member) -> *mut _object>,
pub ofs: usize,
pub type_: *const field_type_t,
}
Expand description
struct member information
Fields§
§name: *const c_char
§set: Option<unsafe extern "C" fn(c_struct: *mut c_void, member: *const struct_member, pysrc: *mut _object) -> c_int>
set this member to a Python value: 0 on success, -1 on error
get: Option<unsafe extern "C" fn(c_struct: *mut c_void, object: *mut conf_object_t, member: *const struct_member) -> *mut _object>
retrieve this member as a Python value; object is only used for interfaces
ofs: usize
member byte offset in struct
type_: *const field_type_t
Trait Implementations§
source§impl Clone for struct_member
impl Clone for struct_member
source§fn clone(&self) -> struct_member
fn clone(&self) -> struct_member
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 struct_member
impl Debug for struct_member
source§impl Default for struct_member
impl Default for struct_member
source§impl Hash for struct_member
impl Hash for struct_member
source§impl Ord for struct_member
impl Ord for struct_member
source§fn cmp(&self, other: &struct_member) -> Ordering
fn cmp(&self, other: &struct_member) -> 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 struct_member
impl PartialEq for struct_member
source§impl PartialOrd for struct_member
impl PartialOrd for struct_member
impl Copy for struct_member
impl Eq for struct_member
impl StructuralPartialEq for struct_member
Auto Trait Implementations§
impl Freeze for struct_member
impl RefUnwindSafe for struct_member
impl !Send for struct_member
impl !Sync for struct_member
impl Unpin for struct_member
impl UnwindSafe for struct_member
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
)