pub struct PluginTypeBuilder { /* private fields */ }Expand description
The builder of PluginType.
Implementations§
Source§impl PluginTypeBuilder
impl PluginTypeBuilder
Sourcepub fn text(self, cmds: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn text(self, cmds: impl IntoIterator<Item = impl Into<String>>) -> Self
A text plugin, which provides commands.
Sourcepub fn line(self, cmds: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn line(self, cmds: impl IntoIterator<Item = impl Into<String>>) -> Self
A line plugins, which provides custom line types.
Sourcepub fn build(self) -> PluginType
pub fn build(self) -> PluginType
Build a PluginType.
Auto Trait Implementations§
impl Freeze for PluginTypeBuilder
impl RefUnwindSafe for PluginTypeBuilder
impl Send for PluginTypeBuilder
impl Sync for PluginTypeBuilder
impl Unpin for PluginTypeBuilder
impl UnwindSafe for PluginTypeBuilder
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