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
sourceimpl CaptureKind
impl CaptureKind
pub fn is_imm_ref(self) -> bool
Trait Implementations
sourceimpl BitOr<CaptureKind> for CaptureKind
impl BitOr<CaptureKind> for CaptureKind
sourceimpl BitOrAssign<CaptureKind> for CaptureKind
impl BitOrAssign<CaptureKind> for CaptureKind
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl Clone for CaptureKind
impl Clone for CaptureKind
sourcefn clone(&self) -> CaptureKind
fn clone(&self) -> CaptureKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CaptureKind
impl Debug for CaptureKind
sourceimpl PartialEq<CaptureKind> for CaptureKind
impl PartialEq<CaptureKind> for CaptureKind
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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