#[repr(C)]pub struct CodeValue {
pub tag: u8,
pub number: f64,
pub string: *const c_char,
pub boolean: u8,
pub fields: *const CodeField,
pub field_count: u32,
pub elements: *const CodeValue,
pub element_count: u32,
}Expand description
A single Code value in C-ABI representation.
Active fields depend on tag:
CODE_TAG_NUMBER→numberCODE_TAG_STRING→string(null-terminated UTF-8 C string)CODE_TAG_BOOLEAN→boolean(0 = false, non-zero = true)CODE_TAG_OBJECT→fields+field_countCODE_TAG_NULL→ (no data)CODE_TAG_ARRAY→elements+element_count
Fields§
§tag: u8§number: f64§string: *const c_char§boolean: u8§fields: *const CodeField§field_count: u32§elements: *const CodeValue§element_count: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeValue
impl RefUnwindSafe for CodeValue
impl Unpin for CodeValue
impl UnsafeUnpin for CodeValue
impl UnwindSafe for CodeValue
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