pub enum PluginMode {
Extension,
Replacement,
}Expand description
Whether a plugin adds a new capability or replaces an existing slot. 插件是增加能力还是替换已有插槽。
Variants§
Extension
Adds a new face without removing any existing one. 增加新面,不移除任何已有面。
Replacement
Takes over the slot occupied by an existing face. 接管已有面所占的插槽。
Trait Implementations§
Source§impl Clone for PluginMode
impl Clone for PluginMode
Source§fn clone(&self) -> PluginMode
fn clone(&self) -> PluginMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PluginMode
Source§impl Debug for PluginMode
impl Debug for PluginMode
impl Eq for PluginMode
Source§impl Ord for PluginMode
impl Ord for PluginMode
Source§fn cmp(&self, other: &PluginMode) -> Ordering
fn cmp(&self, other: &PluginMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PluginMode
impl PartialEq for PluginMode
Source§impl PartialOrd for PluginMode
impl PartialOrd for PluginMode
impl StructuralPartialEq for PluginMode
Auto Trait Implementations§
impl Freeze for PluginMode
impl RefUnwindSafe for PluginMode
impl Send for PluginMode
impl Sync for PluginMode
impl Unpin for PluginMode
impl UnsafeUnpin for PluginMode
impl UnwindSafe for PluginMode
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