pub enum FeatureSet {
Defaults,
All,
Explicit(Vec<String>),
}Expand description
Which features the build under review is resolved with.
Reported rather than assumed, because it is one of the two axes — the other
being the toolchain — that move a lint count without the code changing. On
this repository the difference is 355 crates and 54 build scripts at the
default set against 672 and 87 at --all-features (ADR-0020), so a count
quoted without its feature set is not comparable to any other count.
Variants§
Defaults
Whatever each crate declares as its default features.
All
--all-features.
Explicit(Vec<String>)
--features a,b,c, as the caller wrote them.
Implementations§
Trait Implementations§
Source§impl Clone for FeatureSet
impl Clone for FeatureSet
Source§fn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureSet
impl Debug for FeatureSet
Source§impl Default for FeatureSet
impl Default for FeatureSet
Source§fn default() -> FeatureSet
fn default() -> FeatureSet
Returns the “default value” for a type. Read more
impl Eq for FeatureSet
Source§impl PartialEq for FeatureSet
impl PartialEq for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementations§
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnsafeUnpin for FeatureSet
impl UnwindSafe for FeatureSet
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.