pub struct AutomationEvent(/* private fields */);Implementations§
Source§impl AutomationEvent
impl AutomationEvent
Sourcepub unsafe fn unwrap(self) -> AutomationEvent
pub unsafe fn unwrap(self) -> AutomationEvent
Take the raw ffi type. Must manually free memory by calling the proper unload function
§Safety
The caller is responsible for freeing the returned value by calling the appropriate raylib unload function. Failure to do so will leak resources.
Source§impl AutomationEvent
impl AutomationEvent
Sourcepub fn to_raw(self) -> AutomationEvent
pub fn to_raw(self) -> AutomationEvent
returns the unwrapped raylib-sys object
Sourcepub unsafe fn from_raw(raw: AutomationEvent) -> Self
pub unsafe fn from_raw(raw: AutomationEvent) -> Self
converts raylib-sys object to a “safe” version. Make sure to call this function from the thread the resource was created.
§Safety
The caller must ensure raw is a valid, fully initialized raylib object
obtained from a raylib load function. Ownership is transferred to the
returned wrapper, which will call the appropriate unload function on drop.
Trait Implementations§
Source§impl Debug for AutomationEvent
impl Debug for AutomationEvent
Source§impl Drop for AutomationEvent
impl Drop for AutomationEvent
Auto Trait Implementations§
impl Freeze for AutomationEvent
impl RefUnwindSafe for AutomationEvent
impl Send for AutomationEvent
impl Sync for AutomationEvent
impl Unpin for AutomationEvent
impl UnsafeUnpin for AutomationEvent
impl UnwindSafe for AutomationEvent
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