Struct hello_world::HelloWorld2Interface
source · pub struct HelloWorld2Interface {
pub(crate) obj: *mut ConfObject,
pub(crate) interface: *mut Helloworld2interfaceInternalInterface,
}
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 Helloworld2interfaceInternalInterface
Trait Implementations§
source§impl Interface for HelloWorld2Interface
impl Interface for HelloWorld2Interface
source§type InternalInterface = Helloworld2interfaceInternalInterface
type InternalInterface = Helloworld2interfaceInternalInterface
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<HelloWorld2Interface> for HelloWorld2
Auto Trait Implementations§
impl Freeze for HelloWorld2Interface
impl RefUnwindSafe for HelloWorld2Interface
impl !Send for HelloWorld2Interface
impl !Sync for HelloWorld2Interface
impl Unpin for HelloWorld2Interface
impl UnwindSafe for HelloWorld2Interface
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