pub enum PackageStability {
Stable,
Latest,
}
Expand description
Stability setting for a package
Variants§
Implementations§
Source§impl PackageStability
impl PackageStability
Sourcepub fn parse_from_str(string: &str) -> Option<Self>
pub fn parse_from_str(string: &str) -> Option<Self>
Parse a PackageStability from a string
Trait Implementations§
Source§impl Clone for PackageStability
impl Clone for PackageStability
Source§fn clone(&self) -> PackageStability
fn clone(&self) -> PackageStability
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageStability
impl Debug for PackageStability
Source§impl Default for PackageStability
impl Default for PackageStability
Source§fn default() -> PackageStability
fn default() -> PackageStability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageStability
impl<'de> Deserialize<'de> for PackageStability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for PackageStability
impl Ord for PackageStability
Source§fn cmp(&self, other: &PackageStability) -> Ordering
fn cmp(&self, other: &PackageStability) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PackageStability
impl PartialEq for PackageStability
Source§impl PartialOrd for PackageStability
impl PartialOrd for PackageStability
Source§impl Serialize for PackageStability
impl Serialize for PackageStability
impl Copy for PackageStability
impl Eq for PackageStability
impl StructuralPartialEq for PackageStability
Auto Trait Implementations§
impl Freeze for PackageStability
impl RefUnwindSafe for PackageStability
impl Send for PackageStability
impl Sync for PackageStability
impl Unpin for PackageStability
impl UnwindSafe for PackageStability
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> DefaultExt for T
impl<T> DefaultExt for T
Source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Check if the value is equal to it’s default value