pub enum DeprecationStatus {
Current,
Deprecated(Option<String>),
}
Expand description
Whether an item is deprecated, with context.
Variants§
Current
The field/variant is not deprecated.
Deprecated(Option<String>)
The field/variant is deprecated, with an optional reason
Implementations§
Trait Implementations§
Source§impl Clone for DeprecationStatus
impl Clone for DeprecationStatus
Source§fn clone(&self) -> DeprecationStatus
fn clone(&self) -> DeprecationStatus
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 DeprecationStatus
impl Debug for DeprecationStatus
Source§impl Hash for DeprecationStatus
impl Hash for DeprecationStatus
Source§impl PartialEq for DeprecationStatus
impl PartialEq for DeprecationStatus
impl Eq for DeprecationStatus
impl StructuralPartialEq for DeprecationStatus
Auto Trait Implementations§
impl Freeze for DeprecationStatus
impl RefUnwindSafe for DeprecationStatus
impl Send for DeprecationStatus
impl Sync for DeprecationStatus
impl Unpin for DeprecationStatus
impl UnwindSafe for DeprecationStatus
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.