FuncTable

Struct 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>,

Source§

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>,

Source§

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.