pub enum Stability {
Stable {
since: Version,
deprecated: Option<Version>,
},
Unstable {
feature: String,
deprecated: Option<Version>,
},
Unknown,
}
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.
Variants§
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.
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.
Unknown
This item does not have either @since
or @unstable
.
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
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> 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.