[][src]Struct uclicious_libucl_sys::ucl_emitter_functions

#[repr(C)]
pub struct ucl_emitter_functions {
    pub ucl_emitter_append_character: Option<unsafe extern "C" fn(c: c_uchar, nchars: usize, ud: *mut c_void) -> c_int>,
    pub ucl_emitter_append_len: Option<unsafe extern "C" fn(str: *const c_uchar, len: usize, ud: *mut c_void) -> c_int>,
    pub ucl_emitter_append_int: Option<unsafe extern "C" fn(elt: i64, ud: *mut c_void) -> c_int>,
    pub ucl_emitter_append_double: Option<unsafe extern "C" fn(elt: f64, ud: *mut c_void) -> c_int>,
    pub ucl_emitter_free_func: Option<unsafe extern "C" fn(ud: *mut c_void)>,
    pub ud: *mut c_void,
}

Structure using for emitter callbacks

Fields

ucl_emitter_append_character: Option<unsafe extern "C" fn(c: c_uchar, nchars: usize, ud: *mut c_void) -> c_int>

Append a single character

ucl_emitter_append_len: Option<unsafe extern "C" fn(str: *const c_uchar, len: usize, ud: *mut c_void) -> c_int>

Append a string of a specified length

ucl_emitter_append_int: Option<unsafe extern "C" fn(elt: i64, ud: *mut c_void) -> c_int>

Append a 64 bit integer

ucl_emitter_append_double: Option<unsafe extern "C" fn(elt: f64, ud: *mut c_void) -> c_int>

Append floating point element

ucl_emitter_free_func: Option<unsafe extern "C" fn(ud: *mut c_void)>

Free userdata

ud: *mut c_void

Opaque userdata pointer

Trait Implementations

impl Clone for ucl_emitter_functions[src]

impl Copy for ucl_emitter_functions[src]

impl Debug for ucl_emitter_functions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.