pub enum Stability {
Unknown,
Unstable {
feature: String,
deprecated: Option<Version>,
},
Stable {
since: Version,
deprecated: Option<Version>,
},
}
Expand description
Representation of the stability attributes associated with a world, interface, function, or type.
This is added for WebAssembly/component-model#332 where @since and @unstable annotations were added to WIT.
The order of the of enum values is significant since it is used with Ord and PartialOrd
Variants§
Unknown
This item does not have either @since
or @unstable
.
Unstable
@unstable(feature = foo)
This item is explicitly tagged @unstable
. A feature name is listed and
this item is excluded by default in Resolve
unless explicitly enabled.
Stable
@since(version = 1.2.3)
This item is explicitly tagged with @since
as stable since the
specified version. This may optionally have a feature listed as well.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stability
impl<'de> Deserialize<'de> for Stability
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 Stability
impl Ord for Stability
Source§impl PartialOrd for Stability
impl PartialOrd for Stability
impl Eq for Stability
impl StructuralPartialEq for Stability
Auto Trait Implementations§
impl Freeze for Stability
impl RefUnwindSafe for Stability
impl Send for Stability
impl Sync for Stability
impl Unpin for Stability
impl UnwindSafe for Stability
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.