#[non_exhaustive]pub enum HeaderSniff {
C,
Cpp,
Undecided(BudgetExceeded),
}Expand description
What sniff_header found in a .h file’s content.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
C
Consistent with C: no construct that only C++ has. Not “confirmed C”; see the module documentation.
Cpp
A construct with no meaning in C, so the file can only be C++.
Undecided(BudgetExceeded)
The C++ parse reached its budget, so the content was not read. A caller should report the file as refused rather than pick an answer.
Trait Implementations§
Source§impl Clone for HeaderSniff
impl Clone for HeaderSniff
impl Copy for HeaderSniff
Source§impl Debug for HeaderSniff
impl Debug for HeaderSniff
impl Eq for HeaderSniff
Source§impl PartialEq for HeaderSniff
impl PartialEq for HeaderSniff
impl StructuralPartialEq for HeaderSniff
Auto Trait Implementations§
impl Forget for HeaderSniff
impl Freeze for HeaderSniff
impl Move for HeaderSniff
impl RefUnwindSafe for HeaderSniff
impl Send for HeaderSniff
impl Sync for HeaderSniff
impl Unpin for HeaderSniff
impl UnsafeUnpin for HeaderSniff
impl UnwindSafe for HeaderSniff
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