#[repr(C)]
pub struct json_decoder { pub decodeError: Option<unsafe extern "C" fn(decoder: *mut json_decoder, error: *const c_char, linenum: c_int)>, pub willDecodeSublist: Option<unsafe extern "C" fn(decoder: *mut json_decoder, name: *const c_char, type_: json_value_type)>, pub shouldDecodeTableValueForKey: Option<unsafe extern "C" fn(decoder: *mut json_decoder, key: *const c_char) -> c_int>, pub didDecodeTableValue: Option<unsafe extern "C" fn(decoder: *mut json_decoder, key: *const c_char, value: json_value)>, pub shouldDecodeArrayValueAtIndex: Option<unsafe extern "C" fn(decoder: *mut json_decoder, pos: c_int) -> c_int>, pub didDecodeArrayValue: Option<unsafe extern "C" fn(decoder: *mut json_decoder, pos: c_int, value: json_value)>, pub didDecodeSublist: Option<unsafe extern "C" fn(decoder: *mut json_decoder, name: *const c_char, type_: json_value_type) -> *mut c_void>, pub userdata: *mut c_void, pub returnString: c_int, pub path: *const c_char, }

Fields

decodeError: Option<unsafe extern "C" fn(decoder: *mut json_decoder, error: *const c_char, linenum: c_int)>willDecodeSublist: Option<unsafe extern "C" fn(decoder: *mut json_decoder, name: *const c_char, type_: json_value_type)>shouldDecodeTableValueForKey: Option<unsafe extern "C" fn(decoder: *mut json_decoder, key: *const c_char) -> c_int>didDecodeTableValue: Option<unsafe extern "C" fn(decoder: *mut json_decoder, key: *const c_char, value: json_value)>shouldDecodeArrayValueAtIndex: Option<unsafe extern "C" fn(decoder: *mut json_decoder, pos: c_int) -> c_int>didDecodeArrayValue: Option<unsafe extern "C" fn(decoder: *mut json_decoder, pos: c_int, value: json_value)>didDecodeSublist: Option<unsafe extern "C" fn(decoder: *mut json_decoder, name: *const c_char, type_: json_value_type) -> *mut c_void>userdata: *mut c_voidreturnString: c_intpath: *const c_char

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.