Trait simics::api::traits::conf_object_traits::FromConfObject
source · pub trait FromConfObjectwhere
Self: Sized,{
// Provided methods
unsafe fn from_conf_object<'a>(obj: *const ConfObject) -> &'a Self { ... }
unsafe fn from_conf_object_mut<'a>(obj: *mut ConfObject) -> &'a mut Self { ... }
}
Expand description
Convert from a raw pointer to a reference
Provided Methods§
sourceunsafe fn from_conf_object<'a>(obj: *const ConfObject) -> &'a Self
unsafe fn from_conf_object<'a>(obj: *const ConfObject) -> &'a Self
Get a reference to this object from a raw ConfObject
pointer
§Safety
This function dereferences a raw pointer. It must be called with a valid pointer which has a sufficient lifetime.
sourceunsafe fn from_conf_object_mut<'a>(obj: *mut ConfObject) -> &'a mut Self
unsafe fn from_conf_object_mut<'a>(obj: *mut ConfObject) -> &'a mut Self
Get a mutable reference to this object from a raw ConfObject
pointer
§Safety
This function dereferences a raw pointer. It must be called with a valid pointer which has a sufficient lifetime.
Object Safety§
This trait is not object safe.