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§
source§impl Clone for playdate_json
impl Clone for playdate_json
source§fn clone(&self) -> playdate_json
fn clone(&self) -> playdate_json
Returns a copy 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 playdate_json
impl Debug for playdate_json
source§impl Default for playdate_json
impl Default for playdate_json
source§fn default() -> playdate_json
fn default() -> playdate_json
Returns the “default value” for a type. Read more
source§impl PartialEq<playdate_json> for playdate_json
impl PartialEq<playdate_json> for playdate_json
source§fn 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 ==
.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§
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