Enum Verb Copy item path Source #[repr(u32)]
pub enum Verb {
Install = 0,
Remove = 1,
Run = 3,
Build = 4,
Test = 5,
Update = 2,
Exec = 6,
}Expand description The verbs pmpx recognizes. A closed set – this is all the command line has.
The numbers correspond one-to-one with the PMPX_VERB_* constants, and the order must not change:
a different numbering is an ABI break, and the surface snapshot in the ABI crate records it.
Install dependencies. No argument = install everything in the lockfile, with arguments =
add.
Escape hatch: run an arbitrary command. Plugins that do not support it should report an
error explicitly, see PackageManager::command .
All verbs, in numbering order.
Convert to the number used across the boundary.
Reconstruct from a cross-boundary number.
None means “a verb this build does not know”, and the shell answers that with
PMPX_ERR_UNSUPPORTED_VERB rather than “invalid
arguments”: that is what keeps a new verb additive, because it leaves the host’s
degradation path open for exec.
The word written on the command line.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.