pub struct Class { /* private fields */ }Expand description
原生类型指针
Implementations§
Source§impl Class
impl Class
Sourcepub fn create_raw(&self, v: usize, w: usize) -> Instance
pub fn create_raw(&self, v: usize, w: usize) -> Instance
为此类创建一个实例
v是两个指针长度的内容,可以传任何东西然后as或者transmute
Sourcepub fn create(&self, v: usize, w: usize) -> Litr
pub fn create(&self, v: usize, w: usize) -> Litr
为此类创建一个实例并包装为Litr
v是两个指针长度的内容,可以传任何东西然后as或者transmute
Sourcepub fn method(&self, name: &str, f: NativeMethod)
pub fn method(&self, name: &str, f: NativeMethod)
添加一个方法
Sourcepub fn static_method(&self, name: &str, f: NativeFn)
pub fn static_method(&self, name: &str, f: NativeFn)
添加一个静态方法
Trait Implementations§
impl Send for Class
impl Sync for Class
Auto Trait Implementations§
impl !Freeze for Class
impl !RefUnwindSafe for Class
impl Unpin for Class
impl UnwindSafe for Class
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