Enum rustc_lint::unused::UnusedDelimsCtx
source · enum UnusedDelimsCtx {
Show 14 variants
FunctionArg,
MethodArg,
AssignedValue,
AssignedValueLetElse,
IfCond,
WhileCond,
ForIterExpr,
MatchScrutineeExpr,
ReturnValue,
BlockRetValue,
LetScrutineeExpr,
ArrayLenExpr,
AnonConst,
MatchArmExpr,
}
Variants§
FunctionArg
MethodArg
AssignedValue
AssignedValueLetElse
IfCond
WhileCond
ForIterExpr
MatchScrutineeExpr
ReturnValue
BlockRetValue
LetScrutineeExpr
ArrayLenExpr
AnonConst
MatchArmExpr
Trait Implementations§
source§impl Clone for UnusedDelimsCtx
impl Clone for UnusedDelimsCtx
source§fn clone(&self) -> UnusedDelimsCtx
fn clone(&self) -> UnusedDelimsCtx
Returns a copy 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 moresource§impl Debug for UnusedDelimsCtx
impl Debug for UnusedDelimsCtx
source§impl From<UnusedDelimsCtx> for &'static str
impl From<UnusedDelimsCtx> for &'static str
source§fn from(ctx: UnusedDelimsCtx) -> &'static str
fn from(ctx: UnusedDelimsCtx) -> &'static str
Converts to this type from the input type.
source§impl PartialEq<UnusedDelimsCtx> for UnusedDelimsCtx
impl PartialEq<UnusedDelimsCtx> for UnusedDelimsCtx
source§fn eq(&self, other: &UnusedDelimsCtx) -> bool
fn eq(&self, other: &UnusedDelimsCtx) -> bool
impl Copy for UnusedDelimsCtx
impl Eq for UnusedDelimsCtx
impl StructuralEq for UnusedDelimsCtx
impl StructuralPartialEq for UnusedDelimsCtx
Auto Trait Implementations§
impl RefUnwindSafe for UnusedDelimsCtx
impl Send for UnusedDelimsCtx
impl Sync for UnusedDelimsCtx
impl Unpin for UnusedDelimsCtx
impl UnwindSafe for UnusedDelimsCtx
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
FunctionArg
: 0 bytesMethodArg
: 0 bytesAssignedValue
: 0 bytesAssignedValueLetElse
: 0 bytesIfCond
: 0 bytesWhileCond
: 0 bytesForIterExpr
: 0 bytesMatchScrutineeExpr
: 0 bytesReturnValue
: 0 bytesBlockRetValue
: 0 bytesLetScrutineeExpr
: 0 bytesArrayLenExpr
: 0 bytesAnonConst
: 0 bytesMatchArmExpr
: 0 bytes