pub enum HeaderPolicy {
C,
Cpp,
Detect,
}Expand description
How to classify a bare .h header, which C and C++ share.
Variants§
C
Treat .h as C.
Cpp
Treat .h as C++.
Detect
Settle .h from the rest of the tree, by HeaderEvidence.
Implementations§
Trait Implementations§
Source§impl Clone for HeaderPolicy
impl Clone for HeaderPolicy
Source§fn clone(&self) -> HeaderPolicy
fn clone(&self) -> HeaderPolicy
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 moreimpl Copy for HeaderPolicy
Source§impl Debug for HeaderPolicy
impl Debug for HeaderPolicy
Source§impl Default for HeaderPolicy
impl Default for HeaderPolicy
Source§fn default() -> HeaderPolicy
fn default() -> HeaderPolicy
Returns the “default value” for a type. Read more
impl Eq for HeaderPolicy
Source§impl PartialEq for HeaderPolicy
impl PartialEq for HeaderPolicy
impl StructuralPartialEq for HeaderPolicy
Auto Trait Implementations§
impl Freeze for HeaderPolicy
impl RefUnwindSafe for HeaderPolicy
impl Send for HeaderPolicy
impl Sync for HeaderPolicy
impl Unpin for HeaderPolicy
impl UnsafeUnpin for HeaderPolicy
impl UnwindSafe for HeaderPolicy
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§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.