#[repr(C)]pub struct FunctionEntry {
pub length: u8,
pub cproto: u8,
pub _padding: [u8; 6],
pub cfunc: JSCFunctionType,
}Expand description
The u.func half of JSCFunctionListEntry: a function plus its arity and convention.
Fields§
§length: u8length.
cproto: u8A CFunctionEnum value.
_padding: [u8; 6]Six bytes of padding, which C inserted to align cfunc to 8.
Written out rather than left to repr(C) because the next field is a union: a
struct ending in a union has the union’s alignment, and the compiler would place
cfunc at 8 anyway — but a field that is not spelled is a field whose offset is not
asserted, and this file’s whole premise is that every offset is asserted.
cfunc: JSCFunctionTypeThe body.
Trait Implementations§
Source§impl Clone for FunctionEntry
impl Clone for FunctionEntry
impl Copy for FunctionEntry
Auto Trait Implementations§
impl !Send for FunctionEntry
impl !Sync for FunctionEntry
impl Forget for FunctionEntry
impl Freeze for FunctionEntry
impl Move for FunctionEntry
impl RefUnwindSafe for FunctionEntry
impl Unpin for FunctionEntry
impl UnsafeUnpin for FunctionEntry
impl UnwindSafe for FunctionEntry
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