Api

Trait Api 

Source
pub trait Api:
    Copy
    + Clone
    + Send
    + Sync
    + 'static {
    type CType;

    const NAME: &'static [u8];

    // Required method
    fn new(api: *mut c_void) -> Self;
}

Required Associated Constants§

Source

const NAME: &'static [u8]

Required Associated Types§

Required Methods§

Source

fn new(api: *mut c_void) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Api for EntityApi

Source§

const NAME: &'static [u8] = TM_ENTITY_API_NAME

Source§

type CType = *mut tm_entity_api

Source§

impl Api for GraphInterpreterApi

Source§

const NAME: &'static [u8] = TM_GRAPH_INTERPRETER_API_NAME

Source§

type CType = *mut tm_graph_interpreter_api

Source§

impl Api for LogApi

Source§

const NAME: &'static [u8] = TM_LOGGER_API_NAME

Source§

type CType = *mut tm_logger_api

Source§

impl Api for TheTruthApi

Source§

const NAME: &'static [u8] = TM_THE_TRUTH_API_NAME

Source§

type CType = *mut tm_the_truth_api