pub struct ModuleContext { /* private fields */ }
Implementations§
Source§impl ModuleContext
impl ModuleContext
Sourcepub unsafe fn new(raw: *mut obs_module_t) -> Self
pub unsafe fn new(raw: *mut obs_module_t) -> Self
§Safety
Creates a ModuleContext from a pointer to the raw obs_module data which if modified could cause UB.
Sourcepub unsafe fn get_raw(&self) -> *mut obs_module_t
pub unsafe fn get_raw(&self) -> *mut obs_module_t
§Safety
Returns a pointer to the raw obs_module data which if modified could cause UB.
Auto Trait Implementations§
impl Freeze for ModuleContext
impl RefUnwindSafe for ModuleContext
impl !Send for ModuleContext
impl !Sync for ModuleContext
impl Unpin for ModuleContext
impl UnwindSafe for ModuleContext
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