#[repr(C)]pub struct json_encoder {Show 16 fields
pub writeStringFunc: json_writeFunc,
pub userdata: *mut c_void,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub startArray: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub addArrayMember: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub endArray: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub startTable: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub addTableMember: Option<unsafe extern "C" fn(encoder: *mut json_encoder, name: *const c_char, len: c_int)>,
pub endTable: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub writeNull: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub writeFalse: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub writeTrue: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>,
pub writeInt: Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: c_int)>,
pub writeDouble: Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: c_double)>,
pub writeString: Option<unsafe extern "C" fn(encoder: *mut json_encoder, str_: *const c_char, len: c_int)>,
}Fields§
§writeStringFunc: json_writeFunc§userdata: *mut c_void§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§startArray: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§addArrayMember: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§endArray: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§startTable: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§addTableMember: Option<unsafe extern "C" fn(encoder: *mut json_encoder, name: *const c_char, len: c_int)>§endTable: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§writeNull: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§writeFalse: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§writeTrue: Option<unsafe extern "C" fn(encoder: *mut json_encoder)>§writeInt: Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: c_int)>§writeDouble: Option<unsafe extern "C" fn(encoder: *mut json_encoder, num: c_double)>§writeString: Option<unsafe extern "C" fn(encoder: *mut json_encoder, str_: *const c_char, len: c_int)>Implementations§
Source§impl json_encoder
impl json_encoder
pub fn pretty(&self) -> c_int
pub fn set_pretty(&mut self, val: c_int)
pub unsafe fn pretty_raw(this: *const Self) -> c_int
pub unsafe fn set_pretty_raw(this: *mut Self, val: c_int)
pub fn startedTable(&self) -> c_int
pub fn set_startedTable(&mut self, val: c_int)
pub unsafe fn startedTable_raw(this: *const Self) -> c_int
pub unsafe fn set_startedTable_raw(this: *mut Self, val: c_int)
pub fn startedArray(&self) -> c_int
pub fn set_startedArray(&mut self, val: c_int)
pub unsafe fn startedArray_raw(this: *const Self) -> c_int
pub unsafe fn set_startedArray_raw(this: *mut Self, val: c_int)
pub fn depth(&self) -> c_int
pub fn set_depth(&mut self, val: c_int)
pub unsafe fn depth_raw(this: *const Self) -> c_int
pub unsafe fn set_depth_raw(this: *mut Self, val: c_int)
pub fn new_bitfield_1( pretty: c_int, startedTable: c_int, startedArray: c_int, depth: c_int, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for json_encoder
impl Clone for json_encoder
Source§fn clone(&self) -> json_encoder
fn clone(&self) -> json_encoder
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_encoder
impl Debug for json_encoder
Source§impl Default for json_encoder
impl Default for json_encoder
Source§impl Hash for json_encoder
impl Hash for json_encoder
Source§impl Ord for json_encoder
impl Ord for json_encoder
Source§impl PartialEq for json_encoder
impl PartialEq for json_encoder
Source§impl PartialOrd for json_encoder
impl PartialOrd for json_encoder
Source§fn partial_cmp(&self, other: &json_encoder) -> Option<Ordering>
fn partial_cmp(&self, other: &json_encoder) -> Option<Ordering>
impl Copy for json_encoder
impl Eq for json_encoder
impl StructuralPartialEq for json_encoder
Auto Trait Implementations§
impl Freeze for json_encoder
impl RefUnwindSafe for json_encoder
impl !Send for json_encoder
impl !Sync for json_encoder
impl Unpin for json_encoder
impl UnwindSafe for json_encoder
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: 60 bytes