Enum clippy_utils::CaptureKind
source · pub enum CaptureKind {
Value,
Ref(Mutability),
}
Expand description
How a local is captured by a closure
Variants§
Value
Ref(Mutability)
Implementations§
source§impl CaptureKind
impl CaptureKind
pub fn is_imm_ref(self) -> bool
Trait Implementations§
source§impl BitOr<CaptureKind> for CaptureKind
impl BitOr<CaptureKind> for CaptureKind
source§impl BitOrAssign<CaptureKind> for CaptureKind
impl BitOrAssign<CaptureKind> for CaptureKind
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl Clone for CaptureKind
impl Clone for CaptureKind
source§fn clone(&self) -> CaptureKind
fn clone(&self) -> CaptureKind
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 CaptureKind
impl Debug for CaptureKind
source§impl PartialEq<CaptureKind> for CaptureKind
impl PartialEq<CaptureKind> for CaptureKind
source§fn eq(&self, other: &CaptureKind) -> bool
fn eq(&self, other: &CaptureKind) -> bool
impl Copy for CaptureKind
impl Eq for CaptureKind
impl StructuralEq for CaptureKind
impl StructuralPartialEq for CaptureKind
Auto Trait Implementations§
impl RefUnwindSafe for CaptureKind
impl Send for CaptureKind
impl Sync for CaptureKind
impl Unpin for CaptureKind
impl UnwindSafe for CaptureKind
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:
Value
: 0 bytesRef
: 1 byte