TemplatizerCallbacks

Struct TemplatizerCallbacks 

Source
#[repr(C)]
pub struct TemplatizerCallbacks {
Show 32 fields pub malloc: extern "C" fn(data: *mut Context, size: usize) -> *mut u8, pub free: extern "C" fn(data: *mut Context, ptr: *mut u8), pub strndup: extern "C" fn(data: *mut Context, ptr: *const u8, length: usize) -> *mut u8, pub set_compression: extern "C" fn(data: *mut Context, opt: isize), pub set_keep_alive: extern "C" fn(data: *mut Context), pub send_header: extern "C" fn(data: *mut Context, key: *const u8, value: *const u8), pub send_default_headers: extern "C" fn(data: *mut Context), pub set_output_format: extern "C" fn(data: *mut Context, fmt: isize), pub add_filler_text: extern "C" fn(data: *mut Context, text: *const u8) -> isize, pub add_control_flow: extern "C" fn(data: *mut Context, b: isize) -> isize, pub register_element_tag: extern "C" fn(ctx: *mut Context, s: *const u8, cb: fn()), pub new_if_node: extern "C" fn(ctx: *mut Context) -> isize, pub new_swhile_node: extern "C" fn(ctx: *mut Context) -> isize, pub new_ewhile_node: extern "C" fn(ctx: *mut Context) -> isize, pub new_call_special_node: extern "C" fn(ctx: *mut Context, symbol: *const u8) -> isize, pub exit: extern "C" fn(ctx: *mut Context, status: isize), pub get_num_plugin_parameters: extern "C" fn(ctx: *mut Context) -> isize, pub get_plugin_parameter: extern "C" fn(ctx: *mut Context, index: isize, param_ptr: *mut *const u8, param_length: *mut usize) -> isize, pub storage_open: extern "C" fn(path: *const u8), pub storage_begin_transaction: extern "C" fn(txn: *mut *mut Txn), pub storage_commit_transaction: extern "C" fn(txn: *mut Txn), pub storage_open_database: extern "C" fn(txn: *mut Txn, dbi: *const isize), pub storage_close_database: extern "C" fn(dbi: isize) -> isize, pub storage_get_string: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut *mut u8) -> isize, pub storage_get_integer: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut isize) -> isize, pub sql_connect: extern "C" fn(connection: *mut Sql, s: *const u8) -> isize, pub sql_disconnect: extern "C" fn(connection: *mut Sql) -> isize, pub sql_execute: extern "C" fn(connection: *mut Sql) -> isize, pub sql_prepare: extern "C" fn() -> isize, pub vm_define: extern "C" fn() -> isize, pub vm_start: extern "C" fn(name: *const u8) -> isize, pub vm_destroy: extern "C" fn(name: *const u8) -> isize,
}

Fields§

§malloc: extern "C" fn(data: *mut Context, size: usize) -> *mut u8§free: extern "C" fn(data: *mut Context, ptr: *mut u8)§strndup: extern "C" fn(data: *mut Context, ptr: *const u8, length: usize) -> *mut u8§set_compression: extern "C" fn(data: *mut Context, opt: isize)§set_keep_alive: extern "C" fn(data: *mut Context)§send_header: extern "C" fn(data: *mut Context, key: *const u8, value: *const u8)§send_default_headers: extern "C" fn(data: *mut Context)§set_output_format: extern "C" fn(data: *mut Context, fmt: isize)§add_filler_text: extern "C" fn(data: *mut Context, text: *const u8) -> isize§add_control_flow: extern "C" fn(data: *mut Context, b: isize) -> isize§register_element_tag: extern "C" fn(ctx: *mut Context, s: *const u8, cb: fn())§new_if_node: extern "C" fn(ctx: *mut Context) -> isize§new_swhile_node: extern "C" fn(ctx: *mut Context) -> isize§new_ewhile_node: extern "C" fn(ctx: *mut Context) -> isize§new_call_special_node: extern "C" fn(ctx: *mut Context, symbol: *const u8) -> isize§exit: extern "C" fn(ctx: *mut Context, status: isize)§get_num_plugin_parameters: extern "C" fn(ctx: *mut Context) -> isize§get_plugin_parameter: extern "C" fn(ctx: *mut Context, index: isize, param_ptr: *mut *const u8, param_length: *mut usize) -> isize§storage_open: extern "C" fn(path: *const u8)§storage_begin_transaction: extern "C" fn(txn: *mut *mut Txn)§storage_commit_transaction: extern "C" fn(txn: *mut Txn)§storage_open_database: extern "C" fn(txn: *mut Txn, dbi: *const isize)§storage_close_database: extern "C" fn(dbi: isize) -> isize§storage_get_string: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut *mut u8) -> isize§storage_get_integer: extern "C" fn(txn: *mut Txn, dbi: isize, key_id: isize, value: *mut isize) -> isize§sql_connect: extern "C" fn(connection: *mut Sql, s: *const u8) -> isize§sql_disconnect: extern "C" fn(connection: *mut Sql) -> isize§sql_execute: extern "C" fn(connection: *mut Sql) -> isize§sql_prepare: extern "C" fn() -> isize§vm_define: extern "C" fn() -> isize§vm_start: extern "C" fn(name: *const u8) -> isize§vm_destroy: extern "C" fn(name: *const u8) -> isize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.