#[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_void§returnString: c_int§path: *const c_charTrait Implementations§
Source§impl Clone for json_decoder
impl Clone for json_decoder
Source§fn clone(&self) -> json_decoder
fn clone(&self) -> json_decoder
Returns a duplicate 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 json_decoder
impl Debug for json_decoder
impl Copy for json_decoder
Auto Trait Implementations§
impl Freeze for json_decoder
impl RefUnwindSafe for json_decoder
impl !Send for json_decoder
impl !Sync for json_decoder
impl Unpin for json_decoder
impl UnwindSafe for json_decoder
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