Trait debris_llir::objects::obj_class::HasClass
source · pub trait HasClass {
// Required methods
fn create_properties(ctx: &TypeContext) -> ObjectProperties
where Self: Sized;
fn static_class(ctx: &TypeContext) -> ClassRef
where Self: Sized;
}
Expand description
Marks objects that have a class
Every object payload has to implement this trait.
Required Methods§
sourcefn create_properties(ctx: &TypeContext) -> ObjectPropertieswhere
Self: Sized,
fn create_properties(ctx: &TypeContext) -> ObjectPropertieswhere Self: Sized,
Returns all properties that belong to this class
sourcefn static_class(ctx: &TypeContext) -> ClassRefwhere
Self: Sized,
fn static_class(ctx: &TypeContext) -> ClassRefwhere Self: Sized,
Returns the static class that belongs to this Object