pub enum RetirementReason {
SingleReadSite,
TestOnly,
LiteralConstant,
IdenticalBranches,
EmptyBranch,
GuardsDeadCode,
DefinedNeverRead,
FullyRolledOut,
ArchivedInVendor,
MissingInVendor,
VendorOnly,
}Expand description
Why a flag is a retirement candidate.
Variants§
SingleReadSite
The flag has exactly one read site.
TestOnly
Every read site is in a test, story or mock file.
LiteralConstant
The flag is a const bound to a literal and used as a guard.
IdenticalBranches
The guarded branch and the other branch are the same code.
EmptyBranch
No branch of the guard holds code, so the flag does nothing.
GuardsDeadCode
The guarded block holds unused exports.
DefinedNeverRead
The flag is defined, but no code reads it.
FullyRolledOut
The vendor export says the flag is rolled out, or that the flag serves one variation.
ArchivedInVendor
The vendor export says the flag is archived.
MissingInVendor
The code reads the flag, but the vendor export does not hold its key.
VendorOnly
The vendor export holds the flag, but no code reads it.
Implementations§
Trait Implementations§
Source§impl Clone for RetirementReason
impl Clone for RetirementReason
impl Copy for RetirementReason
Source§impl Debug for RetirementReason
impl Debug for RetirementReason
impl Eq for RetirementReason
Source§impl Hash for RetirementReason
impl Hash for RetirementReason
Source§impl Ord for RetirementReason
impl Ord for RetirementReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RetirementReason
impl PartialEq for RetirementReason
Source§impl PartialOrd for RetirementReason
impl PartialOrd for RetirementReason
Source§impl Serialize for RetirementReason
impl Serialize for RetirementReason
impl StructuralPartialEq for RetirementReason
Auto Trait Implementations§
impl Freeze for RetirementReason
impl RefUnwindSafe for RetirementReason
impl Send for RetirementReason
impl Sync for RetirementReason
impl Unpin for RetirementReason
impl UnsafeUnpin for RetirementReason
impl UnwindSafe for RetirementReason
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.