Struct crankstart_sys::json_decoder
source · [−]#[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_char
Trait Implementations
sourceimpl Clone for json_decoder
impl Clone for json_decoder
sourcefn clone(&self) -> json_decoder
fn clone(&self) -> json_decoder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for json_decoder
impl Debug for json_decoder
sourceimpl Default for json_decoder
impl Default for json_decoder
sourceimpl PartialEq<json_decoder> for json_decoder
impl PartialEq<json_decoder> for json_decoder
sourcefn eq(&self, other: &json_decoder) -> bool
fn eq(&self, other: &json_decoder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &json_decoder) -> bool
fn ne(&self, other: &json_decoder) -> bool
This method tests for !=
.
impl Copy for json_decoder
impl Eq for json_decoder
impl StructuralEq for json_decoder
impl StructuralPartialEq for json_decoder
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more