pub enum Warning {
Show 21 variants
NonClassCaseStructName {
struct_name: Ident,
},
NonClassCaseTraitName {
name: Ident,
},
NonClassCaseEnumName {
enum_name: Ident,
},
NonClassCaseEnumVariantName {
variant_name: Ident,
},
NonSnakeCaseStructFieldName {
field_name: Ident,
},
NonSnakeCaseFunctionName {
name: Ident,
},
NonScreamingSnakeCaseConstName {
name: Ident,
},
LossOfPrecision {
initial_type: IntegerBits,
cast_to: IntegerBits,
},
UnusedReturnValue {
type: TypeInfo,
},
SimilarMethodFound {
lib: Ident,
module: Ident,
name: Ident,
},
ShadowsOtherSymbol {
name: String,
},
OverridingTraitImplementation,
DeadDeclaration,
DeadFunctionDeclaration,
DeadStructDeclaration,
DeadTrait,
UnreachableCode,
DeadEnumVariant {
variant_name: String,
},
DeadMethod,
StructFieldNeverRead,
ShadowingReservedRegister {
reg_name: Ident,
},
}
Variants
NonClassCaseStructName
Fields
struct_name: Ident
NonClassCaseTraitName
Fields
name: Ident
NonClassCaseEnumName
Fields
enum_name: Ident
NonClassCaseEnumVariantName
Fields
variant_name: Ident
NonSnakeCaseStructFieldName
Fields
field_name: Ident
NonSnakeCaseFunctionName
Fields
name: Ident
NonScreamingSnakeCaseConstName
Fields
name: Ident
LossOfPrecision
UnusedReturnValue
Fields
type: TypeInfo
SimilarMethodFound
ShadowsOtherSymbol
Fields
name: String
OverridingTraitImplementation
DeadDeclaration
DeadFunctionDeclaration
DeadStructDeclaration
DeadTrait
UnreachableCode
DeadEnumVariant
Fields
variant_name: String
DeadMethod
StructFieldNeverRead
ShadowingReservedRegister
Fields
reg_name: Ident
Trait Implementations
impl StructuralPartialEq for Warning
Auto Trait Implementations
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more