#[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,
}
Expand description
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§
source§impl Clone for ucl_emitter_functions
impl Clone for ucl_emitter_functions
source§fn clone(&self) -> ucl_emitter_functions
fn clone(&self) -> ucl_emitter_functions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ucl_emitter_functions
impl Debug for ucl_emitter_functions
impl Copy for ucl_emitter_functions
Auto Trait Implementations§
impl RefUnwindSafe for ucl_emitter_functions
impl !Send for ucl_emitter_functions
impl !Sync for ucl_emitter_functions
impl Unpin for ucl_emitter_functions
impl UnwindSafe for ucl_emitter_functions
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