Enum sway_core::error::Warning [−][src]
pub enum Warning<'sc> {
Show 21 variants
NonClassCaseStructName {
struct_name: &'sc str,
},
NonClassCaseTraitName {
name: &'sc str,
},
NonClassCaseEnumName {
enum_name: &'sc str,
},
NonClassCaseEnumVariantName {
variant_name: &'sc str,
},
NonSnakeCaseStructFieldName {
field_name: &'sc str,
},
NonSnakeCaseFunctionName {
name: &'sc str,
},
NonScreamingSnakeCaseConstName {
name: &'sc str,
},
LossOfPrecision {
initial_type: IntegerBits,
cast_to: IntegerBits,
},
UnusedReturnValue {
type: TypeInfo,
},
SimilarMethodFound {
lib: &'sc str,
module: &'sc str,
name: &'sc str,
},
OverridesOtherSymbol {
name: String,
},
OverridingTraitImplementation,
DeadDeclaration,
DeadFunctionDeclaration,
DeadStructDeclaration,
DeadTrait,
UnreachableCode,
DeadEnumVariant {
variant_name: String,
},
DeadMethod,
StructFieldNeverRead,
ShadowingReservedRegister {
reg_name: &'sc str,
},
}
Variants
NonClassCaseStructName
Fields
struct_name: &'sc str
NonClassCaseTraitName
Fields
name: &'sc str
NonClassCaseEnumName
Fields
enum_name: &'sc str
NonClassCaseEnumVariantName
Fields
variant_name: &'sc str
NonSnakeCaseStructFieldName
Fields
field_name: &'sc str
NonSnakeCaseFunctionName
Fields
name: &'sc str
NonScreamingSnakeCaseConstName
Fields
name: &'sc str
LossOfPrecision
UnusedReturnValue
Fields
type: TypeInfo
SimilarMethodFound
OverridesOtherSymbol
Fields
name: String
OverridingTraitImplementation
DeadDeclaration
DeadFunctionDeclaration
DeadStructDeclaration
DeadTrait
UnreachableCode
DeadEnumVariant
Fields
variant_name: String
DeadMethod
StructFieldNeverRead
ShadowingReservedRegister
Fields
reg_name: &'sc str
Trait Implementations
Auto Trait Implementations
impl<'sc> RefUnwindSafe for Warning<'sc>
impl<'sc> UnwindSafe for Warning<'sc>
Blanket Implementations
Mutably borrows from an owned value. Read more