pub enum StabilityLevel {
Stable,
Unstable,
Experimental,
Deprecated,
}Expand description
Runtime-queryable API stability level.
Variants§
Stable
The API is stable and follows semver.
Unstable
The API is unstable and may change in minor versions.
Experimental
The API is experimental and may change or be removed at any time.
Deprecated
The API is deprecated and will be removed in a future version.
Implementations§
Source§impl StabilityLevel
impl StabilityLevel
Sourcepub fn is_production_ready(self) -> bool
pub fn is_production_ready(self) -> bool
Returns true if the API is considered safe for production use.
Only StabilityLevel::Stable qualifies.
Sourcepub fn may_change(self) -> bool
pub fn may_change(self) -> bool
Returns true if the API may change without a major version bump.
Sourcepub fn is_deprecated(self) -> bool
pub fn is_deprecated(self) -> bool
Returns true if the API is deprecated.
Sourcepub fn badge_label(self) -> &'static str
pub fn badge_label(self) -> &'static str
Returns a human-readable label suitable for documentation badges.
Trait Implementations§
Source§impl Clone for StabilityLevel
impl Clone for StabilityLevel
Source§fn clone(&self) -> StabilityLevel
fn clone(&self) -> StabilityLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StabilityLevel
impl Debug for StabilityLevel
Source§impl Display for StabilityLevel
impl Display for StabilityLevel
Source§impl FromStr for StabilityLevel
impl FromStr for StabilityLevel
Source§impl Hash for StabilityLevel
impl Hash for StabilityLevel
Source§impl PartialEq for StabilityLevel
impl PartialEq for StabilityLevel
Source§fn eq(&self, other: &StabilityLevel) -> bool
fn eq(&self, other: &StabilityLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StabilityLevel
impl Eq for StabilityLevel
impl StructuralPartialEq for StabilityLevel
Auto Trait Implementations§
impl Freeze for StabilityLevel
impl RefUnwindSafe for StabilityLevel
impl Send for StabilityLevel
impl Sync for StabilityLevel
impl Unpin for StabilityLevel
impl UnsafeUnpin for StabilityLevel
impl UnwindSafe for StabilityLevel
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.