pub struct MathGeneratorPlugin { /* private fields */ }Expand description
示例插件:数学生成器插件
Implementations§
Trait Implementations§
Source§impl Default for MathGeneratorPlugin
impl Default for MathGeneratorPlugin
Source§impl Plugin for MathGeneratorPlugin
impl Plugin for MathGeneratorPlugin
Source§fn description(&self) -> &str
fn description(&self) -> &str
插件描述
插件作者
Source§fn generators(&self) -> Vec<&dyn CustomGenerator>
fn generators(&self) -> Vec<&dyn CustomGenerator>
获取插件提供的生成器
Source§fn initialize(&self) -> Result<()>
fn initialize(&self) -> Result<()>
初始化插件
Auto Trait Implementations§
impl Freeze for MathGeneratorPlugin
impl !RefUnwindSafe for MathGeneratorPlugin
impl Send for MathGeneratorPlugin
impl Sync for MathGeneratorPlugin
impl Unpin for MathGeneratorPlugin
impl !UnwindSafe for MathGeneratorPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more