pub struct Identify {
pub names: Vec<Field>,
pub search: Search,
pub verbose: bool,
}Expand description
Parameters to identify a utility
Fields§
§names: Vec<Field>Command names
search: SearchSearch parameters
verbose: boolWhether to print a detailed description
Implementations§
Source§impl Identify
impl Identify
Sourcepub fn result<S>(&self, env: &mut Env<S>) -> (String, Vec<NotFound<'_>>)
pub fn result<S>(&self, env: &mut Env<S>) -> (String, Vec<NotFound<'_>>)
Identifies the commands and returns the result.
This function returns a string that should be printed to the standard output, as well as a list of errors that should be printed to the standard error.
This function requires an instance of IsKeyword to be present in the
environment’s any storage to check for keywords. If no
such instance is found, this function will panic.
Trait Implementations§
impl Eq for Identify
impl StructuralPartialEq for Identify
Auto Trait Implementations§
impl Freeze for Identify
impl !RefUnwindSafe for Identify
impl !Send for Identify
impl !Sync for Identify
impl Unpin for Identify
impl UnsafeUnpin for Identify
impl !UnwindSafe for Identify
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