Struct key_native::key::FuncTable

source ·
#[repr(C)]
pub struct FuncTable {
Show 19 fields pub intern: fn(_: &[u8]) -> Ident, pub err: fn(_: &str) -> !, pub find_var: fn(_: Scope, _: Ident) -> Option<LitrRef>, pub let_var: fn(_: Scope, _: Ident, _: Litr), pub const_var: fn(_: Scope, _: Ident), pub using: fn(_: Scope, _: Ident, _: Class), pub call_local: fn(_: &LocalFunc, _: Vec<Litr>) -> Litr, pub call_at: fn(_: Scope, _: *mut Litr, _: &LocalFunc, _: Vec<Litr>) -> Litr, pub get_self: fn(_: Scope) -> *mut Litr, pub get_parent: fn(_: Scope) -> Option<Scope>, pub outlive_inc: fn(_: Scope), pub outlive_dec: fn(_: Scope), pub symcls: fn() -> Class, pub wait_inc: fn(), pub wait_dec: fn(), pub planet_new: fn() -> (*mut (), Class), pub planet_ok: fn(_: *mut (), _: Litr), pub local_instance_clone: fn(_: &[usize; 3]) -> [usize; 3], pub local_instance_drop: fn(_: &mut [usize; 3]),
}
Expand description

premain函数接收的函数表

Fields§

§intern: fn(_: &[u8]) -> Ident§err: fn(_: &str) -> !§find_var: fn(_: Scope, _: Ident) -> Option<LitrRef>§let_var: fn(_: Scope, _: Ident, _: Litr)§const_var: fn(_: Scope, _: Ident)§using: fn(_: Scope, _: Ident, _: Class)§call_local: fn(_: &LocalFunc, _: Vec<Litr>) -> Litr§call_at: fn(_: Scope, _: *mut Litr, _: &LocalFunc, _: Vec<Litr>) -> Litr§get_self: fn(_: Scope) -> *mut Litr§get_parent: fn(_: Scope) -> Option<Scope>§outlive_inc: fn(_: Scope)§outlive_dec: fn(_: Scope)§symcls: fn() -> Class§wait_inc: fn()§wait_dec: fn()§planet_new: fn() -> (*mut (), Class)§planet_ok: fn(_: *mut (), _: Litr)§local_instance_clone: fn(_: &[usize; 3]) -> [usize; 3]§local_instance_drop: fn(_: &mut [usize; 3])

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.