Struct hello_world::HelloWorld2
source · #[repr(C)]pub(crate) struct HelloWorld2 {
pub(crate) conf_object: ConfObject,
pub message: String,
}
Fields§
§conf_object: ConfObject
§message: String
Implementations§
source§impl HelloWorld2
impl HelloWorld2
pub(crate) fn new(obj: *mut ConfObject, value: HelloWorld2) -> *mut ConfObject
source§impl HelloWorld2
impl HelloWorld2
source§impl HelloWorld2
impl HelloWorld2
Trait Implementations§
source§impl ClassAlloc for HelloWorld2
impl ClassAlloc for HelloWorld2
source§impl ClassCreate for HelloWorld2
impl ClassCreate for HelloWorld2
source§impl ClassDealloc for HelloWorld2
impl ClassDealloc for HelloWorld2
source§impl ClassDeinit for HelloWorld2
impl ClassDeinit for HelloWorld2
source§impl ClassFinalize for HelloWorld2
impl ClassFinalize for HelloWorld2
source§impl ClassInit for HelloWorld2
impl ClassInit for HelloWorld2
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 HelloWorld2
impl ClassObjectsFinalize for HelloWorld2
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 HelloWorld2
impl Default for HelloWorld2
source§fn default() -> HelloWorld2
fn default() -> HelloWorld2
Returns the “default value” for a type. Read more
source§impl<'x> From<*const conf_object> for &'x HelloWorld2
impl<'x> From<*const conf_object> for &'x HelloWorld2
source§fn from(obj: *const ConfObject) -> &'x HelloWorld2
fn from(obj: *const ConfObject) -> &'x HelloWorld2
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 HelloWorld2
impl<'x> From<*mut conf_object> for &'x HelloWorld2
source§fn from(obj: *mut ConfObject) -> &'x HelloWorld2
fn from(obj: *mut ConfObject) -> &'x HelloWorld2
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 HelloWorld2
impl<'x> From<*mut conf_object> for &'x mut HelloWorld2
source§fn from(obj: *mut ConfObject) -> &'x mut HelloWorld2
fn from(obj: *mut ConfObject) -> &'x mut HelloWorld2
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 HelloWorld2
impl FromConfObject for HelloWorld2
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 HelloWorld2
impl HasInterface<HelloWorld2Interface> for HelloWorld2
impl HasInterface<HelloWorld2Interface2> for HelloWorld2
Auto Trait Implementations§
impl Freeze for HelloWorld2
impl RefUnwindSafe for HelloWorld2
impl !Send for HelloWorld2
impl !Sync for HelloWorld2
impl Unpin for HelloWorld2
impl UnwindSafe for HelloWorld2
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