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§

source

fn create_properties(ctx: &TypeContext) -> ObjectPropertieswhere Self: Sized,

Returns all properties that belong to this class

source

fn static_class(ctx: &TypeContext) -> ClassRefwhere Self: Sized,

Returns the static class that belongs to this Object

Implementors§