pub struct NameResolution {
pub alias: Option<String>,
pub function: bool,
pub builtin: bool,
pub paths: Vec<String>,
}Expand description
How a name resolves in the shell: the shared precedence walk behind
type, which, where, and whence. Each shell’s reporter owns the
phrasing; this owns the order (alias → function → builtin → PATH).
Fields§
§alias: Option<String>The alias expansion, when the name is an alias.
function: boolWhether the name is a function.
builtin: boolWhether the name is a builtin of this shell.
paths: Vec<String>Every PATH hit, in order.
Auto Trait Implementations§
impl Freeze for NameResolution
impl RefUnwindSafe for NameResolution
impl Send for NameResolution
impl Sync for NameResolution
impl Unpin for NameResolution
impl UnsafeUnpin for NameResolution
impl UnwindSafe for NameResolution
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