Struct oso::Class [−][src]
pub struct Class {
pub name: String,
pub type_id: TypeId,
pub register_hooks: Vec<RegisterHook>,
// some fields omitted
}
Fields
name: String
The class name. Defaults to the std::any::type_name
type_id: TypeId
register_hooks: Vec<RegisterHook>
Implementations
Call class method attr
on self
with arguments from args
.
Returns: The result as a PolarValue
Trait Implementations
Returns the Class
ready for registration
Returns the partially defined Class
for this type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Class
impl !UnwindSafe for Class
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more