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: IdentNonClassCaseTraitName
Fields
name: IdentNonClassCaseEnumName
Fields
enum_name: IdentNonClassCaseEnumVariantName
Fields
variant_name: IdentNonSnakeCaseStructFieldName
Fields
field_name: IdentNonSnakeCaseFunctionName
Fields
name: IdentNonScreamingSnakeCaseConstName
Fields
name: IdentLossOfPrecision
UnusedReturnValue
Fields
type: TypeInfoSimilarMethodFound
ShadowsOtherSymbol
Fields
name: StringOverridingTraitImplementation
DeadDeclaration
DeadFunctionDeclaration
DeadStructDeclaration
DeadTrait
UnreachableCode
DeadEnumVariant
Fields
variant_name: StringDeadMethod
StructFieldNeverRead
ShadowingReservedRegister
Fields
reg_name: IdentTrait 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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