pub trait NativeClass: Class {
    // Required methods
    fn from_path(path: &[PathSegment]) -> Option<Self>;
    fn path(&self) -> TCPathBuf;
}
Expand description

A generic native (i.e. implemented in Rust) class trait

Required Methods§

source

fn from_path(path: &[PathSegment]) -> Option<Self>

Given a fully qualified path, return this class, or a subclass.

source

fn path(&self) -> TCPathBuf

Returns the fully-qualified path of this class.

Object Safety§

This trait is not object safe.

Implementors§