#[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§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
Source§impl Default for json_decoder
impl Default for json_decoder
Source§impl Hash for json_decoder
impl Hash for json_decoder
Source§impl Ord for json_decoder
impl Ord for json_decoder
Source§impl PartialEq for json_decoder
impl PartialEq for json_decoder
Source§impl PartialOrd for json_decoder
impl PartialOrd for json_decoder
Source§fn partial_cmp(&self, other: &json_decoder) -> Option<Ordering>
fn partial_cmp(&self, other: &json_decoder) -> Option<Ordering>
impl Copy for json_decoder
impl Eq for json_decoder
impl StructuralPartialEq 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes