pub struct Bash {
pub version: Version,
pub binary: PathBuf,
pub zero: String,
pub invocation: Invocation,
}Expand description
Which bash a shell is, and how it was started. Constant for as long as the shell lives — a fork inherits it, and anything that could change it makes a new shell instead.
Fields§
§version: Version§binary: PathBuf$BASH: the binary this shell is running.
zero: String$0. A path where bash was handed a file, and otherwise the word bash
also writes into BASH_SOURCE for the code it was given —
Invocation::from_a_file is which.
invocation: InvocationTrait Implementations§
Source§impl<'de> Deserialize<'de> for Bash
impl<'de> Deserialize<'de> for Bash
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bash
impl StructuralPartialEq for Bash
Auto Trait Implementations§
impl Freeze for Bash
impl RefUnwindSafe for Bash
impl Send for Bash
impl Sync for Bash
impl Unpin for Bash
impl UnsafeUnpin for Bash
impl UnwindSafe for Bash
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.