Struct hello_world::HelloWorld2Interface2
source · pub struct HelloWorld2Interface2 {
pub(crate) obj: *mut ConfObject,
pub(crate) interface: *mut Helloworld2interface2InternalInterface,
}
Expand description
The holder for the object the interface is implemented on and the pointer to the CFFI interface of function pointers
Fields§
§obj: *mut ConfObject
§interface: *mut Helloworld2interface2InternalInterface
Trait Implementations§
source§impl Interface for HelloWorld2Interface2
impl Interface for HelloWorld2Interface2
source§type InternalInterface = Helloworld2interface2InternalInterface
type InternalInterface = Helloworld2interface2InternalInterface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static CStr
type Name = &'static CStr
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
impl HasInterface<HelloWorld2Interface2> for HelloWorld2
Auto Trait Implementations§
impl Freeze for HelloWorld2Interface2
impl RefUnwindSafe for HelloWorld2Interface2
impl !Send for HelloWorld2Interface2
impl !Sync for HelloWorld2Interface2
impl Unpin for HelloWorld2Interface2
impl UnwindSafe for HelloWorld2Interface2
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