Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin {
    // Required methods
    fn model(&mut self, name: &str) -> Box<dyn Model>;
    fn title(&mut self) -> &'static str;

    // Provided method
    fn describe(&mut self) -> &'static str { ... }
}
Expand description

插件

Required Methods§

Source

fn model(&mut self, name: &str) -> Box<dyn Model>

Source

fn title(&mut self) -> &'static str

模型名称

Provided Methods§

Source

fn describe(&mut self) -> &'static str

插件描述

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§