mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 16:08:02 -05:00
21 lines
286 B
Rust
21 lines
286 B
Rust
use std::rc::Rc;
|
|
|
|
use crate::vs_value::ToVal;
|
|
|
|
use super::vs_value::Val;
|
|
|
|
#[derive(Debug)]
|
|
pub struct VsClass {
|
|
pub constructor: Val,
|
|
pub prototype: Val,
|
|
pub static_: Val,
|
|
}
|
|
|
|
impl VsClass {}
|
|
|
|
impl ToVal for VsClass {
|
|
fn to_val(self) -> Val {
|
|
Val::Class(Rc::new(self))
|
|
}
|
|
}
|