Skip to main content

Rule

Enum Rule 

Source
#[repr(u16)]
pub enum Rule {
Show 321 variants UnusedAssignment = 0, DynamicSourcePath = 1, UntrackedSourceFile = 2, UncheckedDirectoryChange = 3, SingleQuotedLiteral = 4, UndefinedVariable = 5, FindOutputToXargs = 6, TrapStringExpansion = 7, QuotedBashRegex = 8, ChainedTestBranches = 9, LineOrientedInput = 10, LeadingGlobArgument = 11, FindOutputLoop = 12, LocalTopLevel = 13, SudoRedirectionOrder = 14, StrayClosingKeyword = 15, ConstantComparisonTest = 16, LoopControlOutsideLoop = 17, LiteralUnaryStringTest = 18, TruthyLiteralTest = 19, ConstantCaseSubject = 20, EmptyTest = 21, LeadingZeroArithmetic = 22, AssignmentSpacing = 23, MissingBracketSpace = 24, MissingSpaceBeforeBracketClose = 25, JammedTestBracket = 26, IndentedHeredocClose = 27, PositionalTenBraces = 28, BareDoneWord = 29, UnterminatedIf = 30, MissingFi = 31, BrokenTestEnd = 32, BrokenTestParse = 33, ElseIf = 34, OpenDoubleQuote = 35, LinebreakInTest = 36, CStyleComment = 37, CPrototypeFragment = 38, BadRedirectionFdOrder = 39, BareGlobCommandPath = 40, DiffMarkerLine = 41, PipeToKill = 42, InvalidExitStatus = 43, CasePatternVar = 44, TautologyChain = 45, ArithmeticRedirectionTarget = 46, DuplicateRedirect = 47, AssignSpecialZero = 48, SpaceyAssign = 49, BareSlashMarker = 50, PatternWithVariable = 51, StatusCaptureAfterBranchTest = 52, SubstWithRedirect = 53, SubstWithRedirectErr = 54, RedirectToCommandName = 55, NonAbsoluteShebang = 56, TemplateBraceInCommand = 57, NestedParameterExpansion = 58, OverwrittenFunction = 59, IfMissingThen = 60, ElseWithoutThen = 61, MissingSemicolonBeforeBrace = 62, EmptyFunctionBody = 63, BareClosingBrace = 64, BackslashBeforeClosingBacktick = 65, PositionalParamAsOperator = 66, DoubleParenGrouping = 67, UnicodeQuoteInString = 68, IndentedShebang = 69, SpaceAfterHashBang = 70, ShebangNotOnFirstLine = 71, CommentedContinuationLine = 72, SubshellInArithmetic = 73, UnquotedGlobsInFind = 74, GlobInGrepPattern = 75, GlobInStringComparison = 76, GlobInFindSubstitution = 77, UnquotedGrepRegex = 78, StderrBeforeStdoutRedirect = 79, RedirectClobbersInput = 80, EscapedNegationInTest = 81, GreaterThanInTest = 82, StringComparisonForVersion = 83, MixedAndOrInCondition = 84, QuotedCommandInTest = 85, GlobInTestComparison = 86, TildeInStringComparison = 87, IfDollarCommand = 88, BacktickInCommandPosition = 89, AssignmentLooksLikeComparison = 90, SuspiciousBracketGlob = 91, FunctionCalledWithoutArgs = 92, SetFlagsWithoutDashes = 93, QuotedArraySlice = 94, QuotedBashSource = 95, IfsSetToLiteralBackslashN = 96, GlobInTestDirectory = 97, FindOrWithoutGrouping = 98, NonShellSyntaxInScript = 99, ExportWithPositionalParams = 100, AppendToArrayAsString = 101, DollarQuestionAfterCommand = 102, UnsetAssociativeArrayElement = 103, MapfileProcessSubstitution = 104, AtSignInStringCompare = 105, ArraySliceInComparison = 106, GlobWithExpansionInLoop = 107, AssignmentToNumericVariable = 108, PlusPrefixInAssignment = 109, MalformedArithmeticInCondition = 110, RedirectBeforePipe = 111, ExprSubstrInTest = 112, StringComparedWithEq = 113, AFlagInDoubleBracket = 114, FunctionReferencesUnsetParam = 115, UnreachableAfterExit = 116, UnusedHeredoc = 117, UncheckedDirectoryChangeInFunction = 118, ContinueOutsideLoopInFunction = 119, CaseGlobReachability = 120, CaseDefaultBeforeGlob = 121, AppendWithEscapedQuotes = 122, VariableAsCommandName = 123, EnvPrefixExpansionOnly = 124, ArrayToStringConversion = 125, GetoptsOptionNotInCase = 126, CaseArmNotInGetopts = 127, LocalCrossReference = 128, UnicodeSingleQuoteInSingleQuotes = 129, HeredocMissingEnd = 130, SpacedAssignment = 131, BadVarName = 132, LoopWithoutEnd = 133, MissingDoneInForLoop = 134, DanglingElse = 135, HeredocCloserNotAlone = 136, MisquotedHeredocClose = 137, UntilMissingDo = 138, BrokenAssocKey = 139, SubshellLocalAssignment = 140, CommaArrayElements = 141, SubshellSideEffect = 142, PossibleVariableMisspelling = 143, IfBracketGlued = 144, ImplicitGlobalInFunction = 145, MutableGlobal = 146, UnanchoredSourcePath = 147, FunctionCalledBeforeDefined = 148, ExprArithmetic = 149, GrepCountPipeline = 150, SingleTestSubshell = 151, SubshellTestGroup = 152, DoubleBracketInSh = 153, TestEqualityOperator = 154, LocalVariableInSh = 155, FunctionKeyword = 156, BashCaseFallthrough = 157, ProcessSubstitution = 158, AnsiCQuoting = 159, BraceExpansion = 160, HereString = 161, StandaloneArithmetic = 162, SelectLoop = 163, Coproc = 164, AmpersandRedirection = 165, ArrayAssignment = 166, LetCommand = 167, DeclareCommand = 168, TrapErr = 169, IndirectExpansion = 170, ArrayReference = 171, BraceFdRedirection = 172, PipefailOption = 173, WaitOption = 174, SubstringExpansion = 175, CaseModificationExpansion = 176, ReplacementExpansion = 177, BashFileSlurp = 178, EchoFlags = 179, TrLowerRange = 180, TrUpperRange = 181, EchoBackslashEscapes = 182, SourceBuiltinInSh = 183, PrintfQFormatInSh = 184, IfElifBashTest = 185, FunctionParamsInSh = 186, ExtglobCase = 187, ExtglobInCasePattern = 188, ExtglobInSh = 189, CaretNegationInBracket = 190, ZshRedirPipe = 191, ZshBraceIf = 192, ZshAlwaysBlock = 193, ArraySubscriptTest = 194, ArraySubscriptCondition = 195, SourcedWithArgs = 196, ZshFlagExpansion = 197, NestedZshSubstitution = 198, PlusEqualsAppend = 199, ZshNestedExpansion = 200, MultiVarForLoop = 201, ZshPromptBracket = 202, CshSyntaxInSh = 203, ZshAssignmentToZero = 204, CStyleForInSh = 205, DollarStringInSh = 206, LegacyArithmeticInSh = 207, CStyleForArithmeticInSh = 208, ArrayKeysInSh = 209, StarGlobRemovalInSh = 210, ZshParameterFlag = 211, NestedDefaultExpansion = 212, ZshArraySubscriptInCase = 213, ZshParameterIndexFlag = 214, ExtglobInTest = 215, FunctionKeywordInSh = 216, LexicalComparisonInDoubleBracket = 217, RegexMatchInSh = 218, VTestInSh = 219, ATestInSh = 220, AmpersandRedirectInSh = 221, PipeStderrInSh = 222, HyphenatedFunctionName = 223, ErrexitTrapInSh = 224, SignalNameInTrap = 225, BasePrefixInArithmetic = 226, UnsetPatternInSh = 227, OptionTestInSh = 228, StickyBitTestInSh = 229, OwnershipTestInSh = 230, SourceInsideFunctionInSh = 231, RmGlobOnVariablePath = 232, SshLocalExpansion = 233, EvalOnArray = 234, FindExecDirWithShell = 235, RmRootishTarget = 236, ChmodWorldWritableSensitivePath = 237, ForkBombPattern = 238, UnquotedExpansion = 239, ReadWithoutRaw = 240, LoopFromCommandOutput = 241, UnquotedCommandSubstitution = 242, LegacyBackticks = 243, LegacyArithmeticExpansion = 244, PrintfFormatVariable = 245, UnquotedArrayExpansion = 246, EchoedCommandSubstitution = 247, ExportCommandSubstitution = 248, CompoundTestOperator = 249, PsGrepPipeline = 250, LsGrepPipeline = 251, UnquotedDollarStar = 252, QuotedDollarStarLoop = 253, UnquotedArraySplit = 254, CommandOutputArraySplit = 255, PositionalArgsInString = 256, SingleIterationLoop = 257, BareCommandNameAssignment = 258, BareRead = 259, RedundantSpacesInEcho = 260, RedundantReturnStatus = 261, EchoToSedSubstitution = 262, UnquotedWordBetweenQuotes = 263, UnquotedTrClass = 264, UnquotedVariableInTest = 265, SuWithoutFlag = 266, GlobAssignedToVariable = 267, CommandSubstitutionInAlias = 268, FunctionInAlias = 269, UnquotedPathInMkdir = 270, DeprecatedTempfileCommand = 271, EgrepDeprecated = 272, FgrepDeprecated = 273, DefaultValueInColonAssign = 274, XargsWithInlineReplace = 275, XPrefixInTest = 276, LeadingGlobInGrepPattern = 277, TrapSignalNumbers = 278, GetoptsInvalidFlagHandler = 279, DoubleQuoteNesting = 280, EnvPrefixCommandOnly = 281, MixedQuoteWord = 282, BraceVariableBeforeBracket = 283, UnquotedTrRange = 284, LsPipedToXargs = 285, LsInSubstitution = 286, EchoInsideCommandSubstitution = 287, GrepOutputInTest = 288, AvoidLetBuiltin = 289, EchoHereDoc = 290, ArrayIndexArithmetic = 291, ArithmeticScoreLine = 292, DollarInArithmetic = 293, EscapedUnderscore = 294, SingleQuoteBackslash = 295, LiteralBackslash = 296, BackslashBeforeCommand = 297, SuspectClosingQuote = 298, LiteralBraces = 299, HeredocEndSpace = 300, TrailingDirective = 301, LiteralBackslashInSingleQuotes = 302, LiteralControlEscape = 303, FunctionBodyWithoutBraces = 304, LocalDeclareCombined = 305, IfsEqualsAmbiguity = 306, MissingShebangLine = 307, DuplicateShebangFlag = 308, LinebreakBeforeAnd = 309, SpacedTabstripClose = 310, AmpersandSemicolon = 311, CombineAppends = 312, ShebangShellPolicy = 313, ShebangFormPolicy = 314, ScriptSizeThreshold = 315, MissingFileDescription = 316, TodoFormat = 317, MissingFunctionDoc = 318, FunctionDocContent = 319, MissingMainEntrypoint = 320,
}
Expand description

Rule identifiers, categories, and registry lookup helpers.

Variants§

§

UnusedAssignment = 0

§

DynamicSourcePath = 1

§

UntrackedSourceFile = 2

§

UncheckedDirectoryChange = 3

§

SingleQuotedLiteral = 4

§

UndefinedVariable = 5

§

FindOutputToXargs = 6

§

TrapStringExpansion = 7

§

QuotedBashRegex = 8

§

ChainedTestBranches = 9

§

LineOrientedInput = 10

§

LeadingGlobArgument = 11

§

FindOutputLoop = 12

§

LocalTopLevel = 13

§

SudoRedirectionOrder = 14

§

StrayClosingKeyword = 15

§

ConstantComparisonTest = 16

§

LoopControlOutsideLoop = 17

§

LiteralUnaryStringTest = 18

§

TruthyLiteralTest = 19

§

ConstantCaseSubject = 20

§

EmptyTest = 21

§

LeadingZeroArithmetic = 22

§

AssignmentSpacing = 23

§

MissingBracketSpace = 24

§

MissingSpaceBeforeBracketClose = 25

§

JammedTestBracket = 26

§

IndentedHeredocClose = 27

§

PositionalTenBraces = 28

§

BareDoneWord = 29

§

UnterminatedIf = 30

§

MissingFi = 31

§

BrokenTestEnd = 32

§

BrokenTestParse = 33

§

ElseIf = 34

§

OpenDoubleQuote = 35

§

LinebreakInTest = 36

§

CStyleComment = 37

§

CPrototypeFragment = 38

§

BadRedirectionFdOrder = 39

§

BareGlobCommandPath = 40

§

DiffMarkerLine = 41

§

PipeToKill = 42

§

InvalidExitStatus = 43

§

CasePatternVar = 44

§

TautologyChain = 45

§

ArithmeticRedirectionTarget = 46

§

DuplicateRedirect = 47

§

AssignSpecialZero = 48

§

SpaceyAssign = 49

§

BareSlashMarker = 50

§

PatternWithVariable = 51

§

StatusCaptureAfterBranchTest = 52

§

SubstWithRedirect = 53

§

SubstWithRedirectErr = 54

§

RedirectToCommandName = 55

§

NonAbsoluteShebang = 56

§

TemplateBraceInCommand = 57

§

NestedParameterExpansion = 58

§

OverwrittenFunction = 59

§

IfMissingThen = 60

§

ElseWithoutThen = 61

§

MissingSemicolonBeforeBrace = 62

§

EmptyFunctionBody = 63

§

BareClosingBrace = 64

§

BackslashBeforeClosingBacktick = 65

§

PositionalParamAsOperator = 66

§

DoubleParenGrouping = 67

§

UnicodeQuoteInString = 68

§

IndentedShebang = 69

§

SpaceAfterHashBang = 70

§

ShebangNotOnFirstLine = 71

§

CommentedContinuationLine = 72

§

SubshellInArithmetic = 73

§

UnquotedGlobsInFind = 74

§

GlobInGrepPattern = 75

§

GlobInStringComparison = 76

§

GlobInFindSubstitution = 77

§

UnquotedGrepRegex = 78

§

StderrBeforeStdoutRedirect = 79

§

RedirectClobbersInput = 80

§

EscapedNegationInTest = 81

§

GreaterThanInTest = 82

§

StringComparisonForVersion = 83

§

MixedAndOrInCondition = 84

§

QuotedCommandInTest = 85

§

GlobInTestComparison = 86

§

TildeInStringComparison = 87

§

IfDollarCommand = 88

§

BacktickInCommandPosition = 89

§

AssignmentLooksLikeComparison = 90

§

SuspiciousBracketGlob = 91

§

FunctionCalledWithoutArgs = 92

§

SetFlagsWithoutDashes = 93

§

QuotedArraySlice = 94

§

QuotedBashSource = 95

§

IfsSetToLiteralBackslashN = 96

§

GlobInTestDirectory = 97

§

FindOrWithoutGrouping = 98

§

NonShellSyntaxInScript = 99

§

ExportWithPositionalParams = 100

§

AppendToArrayAsString = 101

§

DollarQuestionAfterCommand = 102

§

UnsetAssociativeArrayElement = 103

§

MapfileProcessSubstitution = 104

§

AtSignInStringCompare = 105

§

ArraySliceInComparison = 106

§

GlobWithExpansionInLoop = 107

§

AssignmentToNumericVariable = 108

§

PlusPrefixInAssignment = 109

§

MalformedArithmeticInCondition = 110

§

RedirectBeforePipe = 111

§

ExprSubstrInTest = 112

§

StringComparedWithEq = 113

§

AFlagInDoubleBracket = 114

§

FunctionReferencesUnsetParam = 115

§

UnreachableAfterExit = 116

§

UnusedHeredoc = 117

§

UncheckedDirectoryChangeInFunction = 118

§

ContinueOutsideLoopInFunction = 119

§

CaseGlobReachability = 120

§

CaseDefaultBeforeGlob = 121

§

AppendWithEscapedQuotes = 122

§

VariableAsCommandName = 123

§

EnvPrefixExpansionOnly = 124

§

ArrayToStringConversion = 125

§

GetoptsOptionNotInCase = 126

§

CaseArmNotInGetopts = 127

§

LocalCrossReference = 128

§

UnicodeSingleQuoteInSingleQuotes = 129

§

HeredocMissingEnd = 130

§

SpacedAssignment = 131

§

BadVarName = 132

§

LoopWithoutEnd = 133

§

MissingDoneInForLoop = 134

§

DanglingElse = 135

§

HeredocCloserNotAlone = 136

§

MisquotedHeredocClose = 137

§

UntilMissingDo = 138

§

BrokenAssocKey = 139

§

SubshellLocalAssignment = 140

§

CommaArrayElements = 141

§

SubshellSideEffect = 142

§

PossibleVariableMisspelling = 143

§

IfBracketGlued = 144

§

ImplicitGlobalInFunction = 145

§

MutableGlobal = 146

§

UnanchoredSourcePath = 147

§

FunctionCalledBeforeDefined = 148

§

ExprArithmetic = 149

§

GrepCountPipeline = 150

§

SingleTestSubshell = 151

§

SubshellTestGroup = 152

§

DoubleBracketInSh = 153

§

TestEqualityOperator = 154

§

LocalVariableInSh = 155

§

FunctionKeyword = 156

§

BashCaseFallthrough = 157

§

ProcessSubstitution = 158

§

AnsiCQuoting = 159

§

BraceExpansion = 160

§

HereString = 161

§

StandaloneArithmetic = 162

§

SelectLoop = 163

§

Coproc = 164

§

AmpersandRedirection = 165

§

ArrayAssignment = 166

§

LetCommand = 167

§

DeclareCommand = 168

§

TrapErr = 169

§

IndirectExpansion = 170

§

ArrayReference = 171

§

BraceFdRedirection = 172

§

PipefailOption = 173

§

WaitOption = 174

§

SubstringExpansion = 175

§

CaseModificationExpansion = 176

§

ReplacementExpansion = 177

§

BashFileSlurp = 178

§

EchoFlags = 179

§

TrLowerRange = 180

§

TrUpperRange = 181

§

EchoBackslashEscapes = 182

§

SourceBuiltinInSh = 183

§

PrintfQFormatInSh = 184

§

IfElifBashTest = 185

§

FunctionParamsInSh = 186

§

ExtglobCase = 187

§

ExtglobInCasePattern = 188

§

ExtglobInSh = 189

§

CaretNegationInBracket = 190

§

ZshRedirPipe = 191

§

ZshBraceIf = 192

§

ZshAlwaysBlock = 193

§

ArraySubscriptTest = 194

§

ArraySubscriptCondition = 195

§

SourcedWithArgs = 196

§

ZshFlagExpansion = 197

§

NestedZshSubstitution = 198

§

PlusEqualsAppend = 199

§

ZshNestedExpansion = 200

§

MultiVarForLoop = 201

§

ZshPromptBracket = 202

§

CshSyntaxInSh = 203

§

ZshAssignmentToZero = 204

§

CStyleForInSh = 205

§

DollarStringInSh = 206

§

LegacyArithmeticInSh = 207

§

CStyleForArithmeticInSh = 208

§

ArrayKeysInSh = 209

§

StarGlobRemovalInSh = 210

§

ZshParameterFlag = 211

§

NestedDefaultExpansion = 212

§

ZshArraySubscriptInCase = 213

§

ZshParameterIndexFlag = 214

§

ExtglobInTest = 215

§

FunctionKeywordInSh = 216

§

LexicalComparisonInDoubleBracket = 217

§

RegexMatchInSh = 218

§

VTestInSh = 219

§

ATestInSh = 220

§

AmpersandRedirectInSh = 221

§

PipeStderrInSh = 222

§

HyphenatedFunctionName = 223

§

ErrexitTrapInSh = 224

§

SignalNameInTrap = 225

§

BasePrefixInArithmetic = 226

§

UnsetPatternInSh = 227

§

OptionTestInSh = 228

§

StickyBitTestInSh = 229

§

OwnershipTestInSh = 230

§

SourceInsideFunctionInSh = 231

§

RmGlobOnVariablePath = 232

§

SshLocalExpansion = 233

§

EvalOnArray = 234

§

FindExecDirWithShell = 235

§

RmRootishTarget = 236

§

ChmodWorldWritableSensitivePath = 237

§

ForkBombPattern = 238

§

UnquotedExpansion = 239

§

ReadWithoutRaw = 240

§

LoopFromCommandOutput = 241

§

UnquotedCommandSubstitution = 242

§

LegacyBackticks = 243

§

LegacyArithmeticExpansion = 244

§

PrintfFormatVariable = 245

§

UnquotedArrayExpansion = 246

§

EchoedCommandSubstitution = 247

§

ExportCommandSubstitution = 248

§

CompoundTestOperator = 249

§

PsGrepPipeline = 250

§

LsGrepPipeline = 251

§

UnquotedDollarStar = 252

§

QuotedDollarStarLoop = 253

§

UnquotedArraySplit = 254

§

CommandOutputArraySplit = 255

§

PositionalArgsInString = 256

§

SingleIterationLoop = 257

§

BareCommandNameAssignment = 258

§

BareRead = 259

§

RedundantSpacesInEcho = 260

§

RedundantReturnStatus = 261

§

EchoToSedSubstitution = 262

§

UnquotedWordBetweenQuotes = 263

§

UnquotedTrClass = 264

§

UnquotedVariableInTest = 265

§

SuWithoutFlag = 266

§

GlobAssignedToVariable = 267

§

CommandSubstitutionInAlias = 268

§

FunctionInAlias = 269

§

UnquotedPathInMkdir = 270

§

DeprecatedTempfileCommand = 271

§

EgrepDeprecated = 272

§

FgrepDeprecated = 273

§

DefaultValueInColonAssign = 274

§

XargsWithInlineReplace = 275

§

XPrefixInTest = 276

§

LeadingGlobInGrepPattern = 277

§

TrapSignalNumbers = 278

§

GetoptsInvalidFlagHandler = 279

§

DoubleQuoteNesting = 280

§

EnvPrefixCommandOnly = 281

§

MixedQuoteWord = 282

§

BraceVariableBeforeBracket = 283

§

UnquotedTrRange = 284

§

LsPipedToXargs = 285

§

LsInSubstitution = 286

§

EchoInsideCommandSubstitution = 287

§

GrepOutputInTest = 288

§

AvoidLetBuiltin = 289

§

EchoHereDoc = 290

§

ArrayIndexArithmetic = 291

§

ArithmeticScoreLine = 292

§

DollarInArithmetic = 293

§

EscapedUnderscore = 294

§

SingleQuoteBackslash = 295

§

LiteralBackslash = 296

§

BackslashBeforeCommand = 297

§

SuspectClosingQuote = 298

§

LiteralBraces = 299

§

HeredocEndSpace = 300

§

TrailingDirective = 301

§

LiteralBackslashInSingleQuotes = 302

§

LiteralControlEscape = 303

§

FunctionBodyWithoutBraces = 304

§

LocalDeclareCombined = 305

§

IfsEqualsAmbiguity = 306

§

MissingShebangLine = 307

§

DuplicateShebangFlag = 308

§

LinebreakBeforeAnd = 309

§

SpacedTabstripClose = 310

§

AmpersandSemicolon = 311

§

CombineAppends = 312

§

ShebangShellPolicy = 313

§

ShebangFormPolicy = 314

§

ScriptSizeThreshold = 315

§

MissingFileDescription = 316

§

TodoFormat = 317

§

MissingFunctionDoc = 318

§

FunctionDocContent = 319

§

MissingMainEntrypoint = 320

Implementations§

Source§

impl Rule

Source

pub const COUNT: usize

Source

pub fn iter() -> impl ExactSizeIterator<Item = Self> + DoubleEndedIterator + Clone

Source

pub const fn code(self) -> &'static str

Source

pub const fn category(self) -> Category

Source

pub const fn default_severity(self) -> Severity

Trait Implementations§

Source§

impl Clone for Rule

Source§

fn clone(&self) -> Rule

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Rule

Source§

impl Debug for Rule

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Rule

Source§

impl FromIterator<Rule> for RuleSet

Source§

fn from_iter<T: IntoIterator<Item = Rule>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl Hash for Rule

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Rule

Source§

fn eq(&self, other: &Rule) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Rule

Auto Trait Implementations§

§

impl Freeze for Rule

§

impl RefUnwindSafe for Rule

§

impl Send for Rule

§

impl Sync for Rule

§

impl Unpin for Rule

§

impl UnsafeUnpin for Rule

§

impl UnwindSafe for Rule

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.