pub struct Builtin {
pub name: Field,
pub is_special: bool,
}Expand description
Information about the currently executing built-in
An instance of Builtin wrapped in a Frame::Builtin is pushed to the
stack when executing a built-in.
Fields§
§name: FieldName of the built-in
is_special: boolWhether the utility acts as a special built-in
This value determines whether an error in the built-in interrupts the
shell. This will be false if a special built-in is executed through the
command built-in.
Trait Implementations§
impl Eq for Builtin
impl StructuralPartialEq for 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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