pub struct Family(/* private fields */);Expand description
生态分组。
决定宿主 plugin ls 的分组标题、plugin set 的作用域,以及项目 .pmpx.toml 里
[plugin] <family> = "..." 的键名。
§这是开放类型,不是封闭 enum
已知生态有常量,未知生态用 Family::new 扩展。比较、序列化、排序表里的匹配都按
字符串走 —— 这样第三方插件要支持新生态时,不需要改这个 crate,更不需要等宿主发版。
封闭 enum 会让「加一个 Ruby 插件」变成「等 pmpx 发版」,那和「零内置插件、后端全部 可插拔」的初衷直接冲突。
Implementations§
Trait Implementations§
impl Eq for Family
Source§impl Ord for Family
impl Ord for Family
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 PartialOrd for Family
impl PartialOrd for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnsafeUnpin for Family
impl UnwindSafe for Family
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