#[repr(C)]pub struct JSCFunctionListEntry {
pub name: *const c_char,
pub prop_flags: u8,
pub def_type: u8,
pub magic: i16,
pub _padding: [u8; 4],
pub u: FunctionListUnion,
}Expand description
JSCFunctionListEntry: one row of a static table a C module hands us.
32 bytes, u at 16. C builds these with JS_CFUNC_DEF and friends, so the layout is
fixed by the caller’s compiler and we only read it.
Fields§
§name: *const c_charThe property name.
prop_flags: u8JS_PROP_* attribute bits.
def_type: u8One of the JS_DEF_* values.
magic: i16The magic integer the definition carries.
_padding: [u8; 4]Four bytes C inserted to align the union to 8.
u: FunctionListUnionThe payload, whose arm def_type selects.
Auto Trait Implementations§
impl !Send for JSCFunctionListEntry
impl !Sync for JSCFunctionListEntry
impl Forget for JSCFunctionListEntry
impl Freeze for JSCFunctionListEntry
impl Move for JSCFunctionListEntry
impl RefUnwindSafe for JSCFunctionListEntry
impl Unpin for JSCFunctionListEntry
impl UnsafeUnpin for JSCFunctionListEntry
impl UnwindSafe for JSCFunctionListEntry
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