ConfigI

Struct ConfigI 

Source
#[repr(C)]
pub struct ConfigI {
Show 22 fields pub inst: *mut ConfigO, pub root: Option<unsafe extern "C" fn(inst: *mut ConfigO) -> ConfigItemT>, pub to_number: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT) -> f64>, pub to_string: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT) -> *const c_char>, pub to_array: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT, items: *mut *mut ConfigItemT) -> u32>, pub to_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT, keys: *mut *mut ConfigItemT, values: *mut *mut ConfigItemT) -> u32>, pub array_count: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT) -> u32>, pub array_get: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, index: u32) -> ConfigItemT>, pub object_get: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key_hash: StrhashT) -> ConfigItemT>, pub add_number: Option<unsafe extern "C" fn(inst: *mut ConfigO, n: f64) -> ConfigItemT>, pub add_string: Option<unsafe extern "C" fn(inst: *mut ConfigO, s: *const c_char) -> ConfigItemT>, pub add_array: Option<unsafe extern "C" fn(inst: *mut ConfigO, items: *const ConfigItemT, size: u32) -> ConfigItemT>, pub add_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, keys: *const ConfigItemT, values: *const ConfigItemT, size: u32) -> ConfigItemT>, pub add_object_with_string_keys: Option<unsafe extern "C" fn(inst: *mut ConfigO, keys: *mut *const c_char, values: *const ConfigItemT, size: u32) -> ConfigItemT>, pub array_set: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, i: u32, item: ConfigItemT)>, pub array_push: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, item: ConfigItemT)>, pub object_update: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key_hash: StrhashT, value: ConfigItemT)>, pub object_add: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key: *const c_char, value: ConfigItemT)>, pub set_root: Option<unsafe extern "C" fn(inst: *mut ConfigO, root: ConfigItemT)>, pub copy: Option<unsafe extern "C" fn(dst: *mut ConfigO, src: *mut ConfigO)>, pub allocator: Option<unsafe extern "C" fn(inst: *mut ConfigO) -> *mut AllocatorI>, pub validate_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, object_display_name: *const c_char, valid_child_keys: *mut *const c_char, num_valid_child_keys: u32) -> bool>,
}

Fields§

§inst: *mut ConfigO§root: Option<unsafe extern "C" fn(inst: *mut ConfigO) -> ConfigItemT>§to_number: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT) -> f64>§to_string: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT) -> *const c_char>§to_array: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT, items: *mut *mut ConfigItemT) -> u32>§to_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, item: ConfigItemT, keys: *mut *mut ConfigItemT, values: *mut *mut ConfigItemT) -> u32>§array_count: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT) -> u32>§array_get: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, index: u32) -> ConfigItemT>§object_get: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key_hash: StrhashT) -> ConfigItemT>§add_number: Option<unsafe extern "C" fn(inst: *mut ConfigO, n: f64) -> ConfigItemT>§add_string: Option<unsafe extern "C" fn(inst: *mut ConfigO, s: *const c_char) -> ConfigItemT>§add_array: Option<unsafe extern "C" fn(inst: *mut ConfigO, items: *const ConfigItemT, size: u32) -> ConfigItemT>§add_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, keys: *const ConfigItemT, values: *const ConfigItemT, size: u32) -> ConfigItemT>§add_object_with_string_keys: Option<unsafe extern "C" fn(inst: *mut ConfigO, keys: *mut *const c_char, values: *const ConfigItemT, size: u32) -> ConfigItemT>§array_set: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, i: u32, item: ConfigItemT)>§array_push: Option<unsafe extern "C" fn(inst: *mut ConfigO, array: ConfigItemT, item: ConfigItemT)>§object_update: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key_hash: StrhashT, value: ConfigItemT)>§object_add: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, key: *const c_char, value: ConfigItemT)>§set_root: Option<unsafe extern "C" fn(inst: *mut ConfigO, root: ConfigItemT)>§copy: Option<unsafe extern "C" fn(dst: *mut ConfigO, src: *mut ConfigO)>§allocator: Option<unsafe extern "C" fn(inst: *mut ConfigO) -> *mut AllocatorI>§validate_object: Option<unsafe extern "C" fn(inst: *mut ConfigO, object: ConfigItemT, object_display_name: *const c_char, valid_child_keys: *mut *const c_char, num_valid_child_keys: u32) -> bool>

Trait Implementations§

Source§

impl Clone for ConfigI

Source§

fn clone(&self) -> ConfigI

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ConfigI

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for ConfigI

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.