pub enum CaptureKind {
Local(LocalIndex),
Upvalue(UpvalueIndex),
}
Expand description
The kind of an upvalue capture.
Variants
Local(LocalIndex)
Capture a local from the current scope.
Upvalue(UpvalueIndex)
Capture an existing upvalue from the current closure.
Trait Implementations
sourceimpl 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 Hash for CaptureKind
impl Hash 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