pub enum Kind {
Attribute,
CAttribute,
Builtin,
Feature,
Extension,
}Expand description
What kind of thing a row of the matrix describes.
The kind is part of the identity of a row, because deprecated is both a GNU attribute
and a C23 one and the two are answered by different operators with different values.
Variants§
Attribute
__attribute__((x)) and [[gnu::x]], asked about with __has_attribute.
CAttribute
A standard [[x]] attribute, asked about with __has_c_attribute.
Builtin
__builtin_x, asked about with __has_builtin.
Feature
A language or preprocessor feature, asked about with __has_feature.
Extension
A GNU extension to the language, asked about with __has_extension.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
Source§impl Ord for Kind
impl Ord for Kind
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 Kind
impl PartialOrd for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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