Trait simics::api::traits::conf_object_traits::FromConfObject

source ·
pub trait FromConfObject
where 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§

source

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.

source

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.

Implementors§