Struct hello_world::HelloWorld
source · #[repr(C)]pub(crate) struct HelloWorld {
pub(crate) conf_object: ConfObject,
pub message: String,
}
Fields§
§conf_object: ConfObject
§message: String
Implementations§
source§impl HelloWorld
impl HelloWorld
pub(crate) fn new(obj: *mut ConfObject, value: HelloWorld) -> *mut ConfObject
source§impl HelloWorld
impl HelloWorld
source§impl HelloWorld
impl HelloWorld
Trait Implementations§
source§impl ClassAlloc for HelloWorld
impl ClassAlloc for HelloWorld
source§impl ClassCreate for HelloWorld
impl ClassCreate for HelloWorld
source§impl ClassDealloc for HelloWorld
impl ClassDealloc for HelloWorld
source§impl ClassDeinit for HelloWorld
impl ClassDeinit for HelloWorld
source§impl ClassFinalize for HelloWorld
impl ClassFinalize for HelloWorld
source§impl ClassInit for HelloWorld
impl ClassInit for HelloWorld
source§unsafe fn init(instance: *mut ConfObject) -> Result<*mut ConfObject>
unsafe fn init(instance: *mut ConfObject) -> Result<*mut ConfObject>
Perform class specific instantiation, set default values for attributes. May allocate
additional memory if co-allocation is not used. Attribute setters are called after this
function returns. The default implementation returns the object without modification.
Returning NULL from this function indicates an error Read more
source§impl ClassObjectsFinalize for HelloWorld
impl ClassObjectsFinalize for HelloWorld
source§unsafe fn objects_finalized(_instance: *mut conf_object) -> Result<(), Error>
unsafe fn objects_finalized(_instance: *mut conf_object) -> Result<(), Error>
Called after object is fully constructed and can participate in simulation and reverse
execution. May call interface methods on other objects here as part of initialization.
The default implementation of this method does nothing Read more
source§impl Default for HelloWorld
impl Default for HelloWorld
source§fn default() -> HelloWorld
fn default() -> HelloWorld
Returns the “default value” for a type. Read more
source§impl<'x> From<*const conf_object> for &'x HelloWorld
impl<'x> From<*const conf_object> for &'x HelloWorld
source§fn from(obj: *const ConfObject) -> &'x HelloWorld
fn from(obj: *const ConfObject) -> &'x HelloWorld
Convert a raw ConfObject
pointer to a reference to this object
§Safety
This function dereferences a raw pointer. It must be called with a valid pointer which has a sufficient lifetime.
source§impl<'x> From<*mut conf_object> for &'x HelloWorld
impl<'x> From<*mut conf_object> for &'x HelloWorld
source§fn from(obj: *mut ConfObject) -> &'x HelloWorld
fn from(obj: *mut ConfObject) -> &'x HelloWorld
Convert a raw ConfObject
pointer to a mutable reference to this object
§Safety
This function dereferences a raw pointer. It must be called with a valid pointer which has a sufficient lifetime.
source§impl<'x> From<*mut conf_object> for &'x mut HelloWorld
impl<'x> From<*mut conf_object> for &'x mut HelloWorld
source§fn from(obj: *mut ConfObject) -> &'x mut HelloWorld
fn from(obj: *mut ConfObject) -> &'x mut HelloWorld
Convert a raw ConfObject
pointer to a mutable reference to this object
§Safety
This function dereferences a raw pointer. It must be called with a valid pointer which has a sufficient lifetime.
source§impl FromConfObject for HelloWorld
impl FromConfObject for HelloWorld
source§unsafe fn from_conf_object<'a>(obj: *const conf_object) -> &'a Self
unsafe fn from_conf_object<'a>(obj: *const conf_object) -> &'a Self
Get a reference to this object from a raw
ConfObject
pointer Read moresource§unsafe fn from_conf_object_mut<'a>(obj: *mut conf_object) -> &'a mut Self
unsafe fn from_conf_object_mut<'a>(obj: *mut conf_object) -> &'a mut Self
Get a mutable reference to this object from a raw
ConfObject
pointer Read moreimpl Class for HelloWorld
impl HasInterface<HelloWorldInterface> for HelloWorld
impl HasInterface<HelloWorldInterface2> for HelloWorld
Auto Trait Implementations§
impl Freeze for HelloWorld
impl RefUnwindSafe for HelloWorld
impl !Send for HelloWorld
impl !Sync for HelloWorld
impl Unpin for HelloWorld
impl UnwindSafe for HelloWorld
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