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§
Sourcefn from_path(path: &[PathSegment]) -> Option<Self>
fn from_path(path: &[PathSegment]) -> Option<Self>
Given a fully qualified path, return this class, or a subclass.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.