Struct crankstart_sys::playdate_json
source · [−]#[repr(C)]pub struct playdate_json {
pub initEncoder: Option<unsafe extern "C" fn(encoder: *mut json_encoder, write: writeFunc, userdata: *mut c_void, pretty: c_int)>,
pub decode: Option<unsafe extern "C" fn(functions: *mut json_decoder, reader: json_reader, outval: *mut json_value) -> c_int>,
pub decodeString: Option<unsafe extern "C" fn(functions: *mut json_decoder, jsonString: *const c_char, outval: *mut json_value) -> c_int>,
}
Fields
initEncoder: Option<unsafe extern "C" fn(encoder: *mut json_encoder, write: writeFunc, userdata: *mut c_void, pretty: c_int)>
decode: Option<unsafe extern "C" fn(functions: *mut json_decoder, reader: json_reader, outval: *mut json_value) -> c_int>
decodeString: Option<unsafe extern "C" fn(functions: *mut json_decoder, jsonString: *const c_char, outval: *mut json_value) -> c_int>
Trait Implementations
sourceimpl Clone for playdate_json
impl Clone for playdate_json
sourcefn clone(&self) -> playdate_json
fn clone(&self) -> playdate_json
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 playdate_json
impl Debug for playdate_json
sourceimpl Default for playdate_json
impl Default for playdate_json
sourcefn default() -> playdate_json
fn default() -> playdate_json
Returns the “default value” for a type. Read more
sourceimpl PartialEq<playdate_json> for playdate_json
impl PartialEq<playdate_json> for playdate_json
sourcefn eq(&self, other: &playdate_json) -> bool
fn eq(&self, other: &playdate_json) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &playdate_json) -> bool
fn ne(&self, other: &playdate_json) -> bool
This method tests for !=
.
impl Copy for playdate_json
impl Eq for playdate_json
impl StructuralEq for playdate_json
impl StructuralPartialEq for playdate_json
Auto Trait Implementations
impl RefUnwindSafe for playdate_json
impl Send for playdate_json
impl Sync for playdate_json
impl Unpin for playdate_json
impl UnwindSafe for playdate_json
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