pub enum IncludeCoverage {
Complete,
FirstPartyUnread,
StdlibUnread,
BothUnread,
}Expand description
Whether the -include closure was read in full, and which side of
it a skipped header falls on. A first-party header can hide a
macro, a record, or a type; a skipped stdlib header can only hide a
macro or a record, since a module can only export a type declared
in its own text.
Variants§
Implementations§
Source§impl IncludeCoverage
impl IncludeCoverage
Sourcepub fn hides_macros_or_records(self) -> bool
pub fn hides_macros_or_records(self) -> bool
True for every arm but Complete: an unread header of either
kind can hide a macro or a record.
Sourcepub fn hides_types(self) -> bool
pub fn hides_types(self) -> bool
True only when a first-party header went unread: a skipped stdlib header cannot hide a type a first-party module re-exports.
Trait Implementations§
Source§impl Clone for IncludeCoverage
impl Clone for IncludeCoverage
impl Copy for IncludeCoverage
Source§impl Debug for IncludeCoverage
impl Debug for IncludeCoverage
Source§impl Default for IncludeCoverage
impl Default for IncludeCoverage
impl Eq for IncludeCoverage
Source§impl PartialEq for IncludeCoverage
impl PartialEq for IncludeCoverage
impl StructuralPartialEq for IncludeCoverage
Auto Trait Implementations§
impl Forget for IncludeCoverage
impl Freeze for IncludeCoverage
impl Move for IncludeCoverage
impl RefUnwindSafe for IncludeCoverage
impl Send for IncludeCoverage
impl Sync for IncludeCoverage
impl Unpin for IncludeCoverage
impl UnsafeUnpin for IncludeCoverage
impl UnwindSafe for IncludeCoverage
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