pub enum SpecialParameter {
AllPositionalParameters {
concatenate: bool,
},
PositionalParameterCount,
LastExitStatus,
CurrentOptionFlags,
ProcessId,
LastBackgroundProcessId,
ShellName,
}Expand description
A special parameter, used in a parameter expansion.
Variants§
AllPositionalParameters
All positional parameters.
PositionalParameterCount
The count of positional parameters.
LastExitStatus
The last exit status in the shell.
CurrentOptionFlags
The current shell option flags.
ProcessId
The current shell process ID.
LastBackgroundProcessId
The last background process ID managed by the shell.
ShellName
The name of the shell.
Trait Implementations§
Source§impl Clone for SpecialParameter
impl Clone for SpecialParameter
Source§fn clone(&self) -> SpecialParameter
fn clone(&self) -> SpecialParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpecialParameter
impl RefUnwindSafe for SpecialParameter
impl Send for SpecialParameter
impl Sync for SpecialParameter
impl Unpin for SpecialParameter
impl UnwindSafe for SpecialParameter
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