pub enum Categorization<S> {
Keyword,
Alias(Rc<Alias>),
Target(Target<S>),
}Expand description
Result of categorizing a command
§Notes on equality
Although this type implements PartialEq, comparison between instances of
this type may not always yield predictable results due to the presence of
function pointers in Target. As a result, it is recommended to avoid
relying on equality comparisons for values of this type. See
https://doc.rust-lang.org/std/ptr/fn.fn_addr_eq.html for the
characteristics of function pointer comparisons.
Variants§
Keyword
Shell reserved word
Alias(Rc<Alias>)
Alias
Target(Target<S>)
Target program that can be executed
Trait Implementations§
Source§impl<S> Clone for Categorization<S>
impl<S> Clone for Categorization<S>
Source§impl<S> Debug for Categorization<S>
impl<S> Debug for Categorization<S>
Source§impl<S> From<Target<S>> for Categorization<S>
impl<S> From<Target<S>> for Categorization<S>
Source§impl<S> PartialEq for Categorization<S>
impl<S> PartialEq for Categorization<S>
impl<S> Eq for Categorization<S>
Auto Trait Implementations§
impl<S> Freeze for Categorization<S>
impl<S> !RefUnwindSafe for Categorization<S>
impl<S> !Send for Categorization<S>
impl<S> !Sync for Categorization<S>
impl<S> Unpin for Categorization<S>
impl<S> UnsafeUnpin for Categorization<S>
impl<S> !UnwindSafe for Categorization<S>
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