Enum WarningKind
pub enum WarningKind {
Show 41 variants
Multichar,
UnknownEscapeSequence,
ImplicitlyUnsignedLiteral,
LiteralRange,
MissingDeclarations,
DuplicateDeclSpecifier,
ExternInitializer,
Uninitialized,
UnusedVariable,
UnusedFunction,
UnusedLocalTypedef,
ExcessInitializers,
MissingBraces,
ManyBracesAroundScalarInit,
LogicalOpParentheses,
BitwiseOpParentheses,
Parentheses,
ArrayBounds,
UnusedValue,
UnusedComparison,
DivisionByZero,
IntegerOverflow,
FloatingPointOverflow,
ShiftCountNegative,
ShiftCountOverflow,
ShiftCountZero,
ConstantConversion,
ImplicitConversion,
ImplicitPromotionConversion,
ImplicitIntConversion,
ImplicitFloatConversion,
ImplicitIntFloatConversion,
FloatConversion,
SignConversion,
PointerToIntCast,
PointerBoolConversion,
NonLiteralNullConversion,
CompareDistinctPointerTypes,
PointerIntegerCompare,
ConditionalTypeMismatch,
PointerTypeMismatch,
}Expand description
The kind of warning.
Variants§
Multichar
UnknownEscapeSequence
ImplicitlyUnsignedLiteral
LiteralRange
MissingDeclarations
DuplicateDeclSpecifier
ExternInitializer
Uninitialized
UnusedVariable
UnusedFunction
UnusedLocalTypedef
ExcessInitializers
MissingBraces
ManyBracesAroundScalarInit
LogicalOpParentheses
BitwiseOpParentheses
Parentheses
ArrayBounds
UnusedValue
UnusedComparison
DivisionByZero
IntegerOverflow
FloatingPointOverflow
ShiftCountNegative
ShiftCountOverflow
ShiftCountZero
ConstantConversion
ImplicitConversion
ImplicitPromotionConversion
ImplicitIntConversion
ImplicitFloatConversion
ImplicitIntFloatConversion
FloatConversion
SignConversion
PointerToIntCast
PointerBoolConversion
NonLiteralNullConversion
CompareDistinctPointerTypes
PointerIntegerCompare
ConditionalTypeMismatch
PointerTypeMismatch
Implementations§
§impl WarningKind
impl WarningKind
pub fn all() -> HashSet<WarningKind>
pub fn all() -> HashSet<WarningKind>
A HashSet of all the warnings.
pub fn all_strings() -> Vec<&'static str>
pub fn all_strings() -> Vec<&'static str>
A sorted Vec of the string representations of all the warnings.
§impl WarningKind
impl WarningKind
pub fn enabled_by_default() -> HashSet<WarningKind>
pub fn enabled_by_default() -> HashSet<WarningKind>
Returns a HashSet of compiler warnings that are enabled by default.
Trait Implementations§
§impl Clone for WarningKind
impl Clone for WarningKind
§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for WarningKind
impl Debug for WarningKind
§impl Display for WarningKind
impl Display for WarningKind
§impl FromStr for WarningKind
impl FromStr for WarningKind
§impl Hash for WarningKind
impl Hash for WarningKind
§impl PartialEq for WarningKind
impl PartialEq for WarningKind
impl Copy for WarningKind
impl Eq for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnwindSafe for WarningKind
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