NativeClass

Trait NativeClass 

Source
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.

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.

Implementors§