pub struct Builtin { /* private fields */ }
Expand description
Properties of a zsh builtin command.
Any chages will reflect on the behaviour of the builtin
Implementations§
Source§impl Builtin
impl Builtin
Sourcepub fn new(name: &str) -> Self
pub fn new(name: &str) -> Self
Creates a command builtin.
By default, the builtin can take any amount of arguments (minargs and maxargs are 0 and
None
, respectively) and no flags.
Sourcepub fn minargs(self, value: i32) -> Self
pub fn minargs(self, value: i32) -> Self
Sets the minimum amount of arguments allowed by the builtin
Auto Trait Implementations§
impl Freeze for Builtin
impl RefUnwindSafe for Builtin
impl Send for Builtin
impl Sync for Builtin
impl Unpin for Builtin
impl UnwindSafe for Builtin
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