pub enum SourceLanguage {
C,
Cxx,
}Expand description
Source-file language as observed by the build planner.
Variants§
Implementations§
Source§impl SourceLanguage
impl SourceLanguage
Sourcepub const fn as_key(self) -> &'static str
pub const fn as_key(self) -> &'static str
Stable lower-case identifier suitable for diagnostics,
JSON output, and rule names. c for C and cxx for C++ —
matching the crate::ToolKind keys.
Sourcepub const fn human_label(self) -> &'static str
pub const fn human_label(self) -> &'static str
Human-readable label used in error messages so the language is unambiguous to the user.
Trait Implementations§
Source§impl Clone for SourceLanguage
impl Clone for SourceLanguage
Source§fn clone(&self) -> SourceLanguage
fn clone(&self) -> SourceLanguage
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 SourceLanguage
impl Debug for SourceLanguage
Source§impl Display for SourceLanguage
impl Display for SourceLanguage
Source§impl Hash for SourceLanguage
impl Hash for SourceLanguage
Source§impl Ord for SourceLanguage
impl Ord for SourceLanguage
Source§fn cmp(&self, other: &SourceLanguage) -> Ordering
fn cmp(&self, other: &SourceLanguage) -> Ordering
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
Source§impl PartialEq for SourceLanguage
impl PartialEq for SourceLanguage
Source§fn eq(&self, other: &SourceLanguage) -> bool
fn eq(&self, other: &SourceLanguage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SourceLanguage
impl PartialOrd for SourceLanguage
impl Copy for SourceLanguage
impl Eq for SourceLanguage
impl StructuralPartialEq for SourceLanguage
Auto Trait Implementations§
impl Freeze for SourceLanguage
impl RefUnwindSafe for SourceLanguage
impl Send for SourceLanguage
impl Sync for SourceLanguage
impl Unpin for SourceLanguage
impl UnsafeUnpin for SourceLanguage
impl UnwindSafe for SourceLanguage
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.