pub struct Stability {
pub feature: String,
pub level: StabilityLevel,
}Expand description
Stability information for an item.
This only refers to regular item stability: whether the item is stable or unstable
as represented by the #[stable] or #[unstable] attributes.
Const stability and default-body stability are different things and not captured here.
Fields§
§feature: StringThe stability feature associated with this item.
For unstable items, this is the feature gate associated with the item. For stable items, this is the historical label recorded when the item was stabilized.
level: StabilityLevelTrait 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 UnsafeUnpin 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