Trait emf_core_base_rs::sys::SysAPIMin[][src]

pub trait SysAPIMin<'interface> {
    fn panic(&self, error: Option<impl AsRef<CStr>>) -> !;
fn has_function<U>(&self) -> bool
    where
        U: FnCaster
;
fn get_function<U>(&self, caster: &U) -> Option<<U as FnCaster>::Type>
    where
        U: FnCaster
; }

Minimal sys api.

Required methods

fn panic(&self, error: Option<impl AsRef<CStr>>) -> ![src]

Execution of the program is stopped abruptly. The error may be logged.

fn has_function<U>(&self) -> bool where
    U: FnCaster
[src]

Checks if a function is implemented.

Return

Returns true if the function exists, false otherwise.

fn get_function<U>(&self, caster: &U) -> Option<<U as FnCaster>::Type> where
    U: FnCaster
[src]

Fetches a function from the interface.

Return

Function casted to the appropriate type.

Loading content...

Implementors

impl<'interface> SysAPIMin<'interface> for CBase<'interface>[src]

impl<'interface, T> SysAPIMin<'interface> for T where
    T: SysBinding
[src]

Loading content...