pub enum Suffix {
Stable,
Patch(u16),
Prerelease {
stability: Stability,
num: String,
},
Dev,
PrereleaseDev {
stability: Stability,
num: String,
},
PatchDev(u16),
}Expand description
Stability suffix on a numeric version. Composer’s enum has more
variants than Stability (which is the top-level keyword for
minimum-stability) — patch is not its own Stability but
appears in normalized strings as -patchN. Dev here means a
bare -dev; PrereleaseDev is the -RC1-dev hybrid.
Variants§
Stable
No suffix.
Patch(u16)
-patchN. Still stable in Composer’s stability model.
Prerelease
-RC<num>, -beta<num>, -alpha<num>. num is the
canonical rendered number tail ("" for bare -beta, "0"
for -beta0/-beta.0, "3.1" for -alpha.3.1, "2.1-3"
for -alpha-2.1-3). The string is appended verbatim after
the stability keyword.
Dev
Bare -dev.
PrereleaseDev
Prerelease followed by -dev (-RC1-dev, etc.).
PatchDev(u16)
-patch<num>-dev hybrid (1.0.0.pl3-dev → 1.0.0.0-patch3-dev).
Implementations§
Trait Implementations§
impl Eq for Suffix
impl StructuralPartialEq for Suffix
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnsafeUnpin for Suffix
impl UnwindSafe for Suffix
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