Struct yksom::vm::objects::Class[][src]

pub struct Class {
    pub path: PathBuf,
    pub instrs_off: usize,
    pub inst_vars_map: HashMap<SmartString, usize>,
    // some fields omitted
}

Fields

path: PathBufinstrs_off: usize

Offset to this class’s instructions in VM::instrs.

inst_vars_map: HashMap<SmartString, usize>

Implementations

impl Class[src]

pub fn new(
    vm: &VM,
    metacls: Val,
    name: Val,
    path: PathBuf,
    instrs_off: usize,
    supercls: Val,
    inst_vars_map: HashMap<SmartString, usize>,
    methods: Val,
    methods_map: HashMap<SmartString, usize>
) -> Val
[src]

pub fn name(&self, _: &VM) -> Result<Val, Box<VMError>>[src]

pub fn get_method(&self, vm: &VM, msg: &str) -> Result<Gc<Method>, Box<VMError>>[src]

pub fn set_metacls(&self, vm: &VM, cls_val: Val)[src]

pub fn supercls(&self, _: &VM) -> Val[src]

pub fn set_supercls(&self, _: &VM, cls: Val)[src]

pub fn set_methods_class(&self, vm: &VM, cls: Val)[src]

pub fn bootstrap(&self, vm: &VM)[src]

pub fn fields(&self, vm: &mut VM) -> Val[src]

pub fn methods(&self, _: &VM) -> Val[src]

Trait Implementations

impl Debug for Class[src]

impl NotUnboxable for Class[src]

impl Obj for Class[src]

impl StaticObjType for Class[src]

Auto Trait Implementations

impl !NoTrace for Class

impl !RefUnwindSafe for Class

impl Send for Class

impl !Sync for Class

impl Unpin for Class

impl UnwindSafe for Class

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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