#[repr(u8)]pub enum SourceSet {
Production = 0,
Test = 1,
Generated = 2,
Vendored = 3,
}Expand description
The group a source file belongs to. Every source file belongs to exactly one Source set, and every Metric reports each Source set separately.
Variants§
Production = 0
Code that ships, the default for a file that no other rule claims.
Test = 1
Code that only tests run, such as a TypeScript *.test.ts file.
Generated = 2
Code that a tool writes, such as build output.
Vendored = 3
Third-party code copied into the repository.
Implementations§
Trait Implementations§
impl Copy for SourceSet
impl Eq for SourceSet
Source§impl Ord for SourceSet
impl Ord for SourceSet
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 PartialOrd for SourceSet
impl PartialOrd for SourceSet
impl StructuralPartialEq for SourceSet
Auto Trait Implementations§
impl Forget for SourceSet
impl Freeze for SourceSet
impl Move for SourceSet
impl RefUnwindSafe for SourceSet
impl Send for SourceSet
impl Sync for SourceSet
impl Unpin for SourceSet
impl UnsafeUnpin for SourceSet
impl UnwindSafe for SourceSet
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