Enum ProgramKind
pub enum ProgramKind
Variants
-
PathLookup A program that would be looked up on the PATH (e.g.
ls)-
Relative A relative path (e.g.
my-dir/foo,../foo,./foo)-
Absolute An absolute path.
Implementations
impl ProgramKind
fn new(program: &OsStr) -> Self
Trait Implementations
impl Clone for ProgramKind
fn clone(&self) -> ProgramKind
impl Copy for ProgramKind
impl Debug for ProgramKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ProgramKind
fn assert_fields_are_eq(&self)
impl PartialEq for ProgramKind
fn eq(&self, other: &ProgramKind) -> bool
impl StructuralPartialEq for ProgramKind
impl TrivialClone for ProgramKind
Auto Trait Implementations
impl Freeze for ProgramKind
impl RefUnwindSafe for ProgramKind
impl Send for ProgramKind
impl Sync for ProgramKind
impl Unpin for ProgramKind
impl UnsafeUnpin for ProgramKind
impl UnwindSafe for ProgramKind
Blanket Implementations
impl<T> Any for ProgramKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ProgramKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ProgramKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ProgramKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ProgramKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for ProgramKind
where
T: Copy + Debug,
impl<T> SizeHint for ProgramKind
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ProgramKind
impl<T> ToOwned for ProgramKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ProgramKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ProgramKind
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ProgramKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>