#[repr(u8)]pub enum CaptureType {
Val = 0,
Ref = 1,
Upval = 2,
}Variants§
Trait Implementations§
Source§impl Clone for CaptureType
impl Clone for CaptureType
Source§fn clone(&self) -> CaptureType
fn clone(&self) -> CaptureType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CaptureType
Source§impl Debug for CaptureType
impl Debug for CaptureType
impl Eq for CaptureType
Source§impl PartialEq for CaptureType
impl PartialEq for CaptureType
impl StructuralPartialEq for CaptureType
Auto Trait Implementations§
impl Freeze for CaptureType
impl RefUnwindSafe for CaptureType
impl Send for CaptureType
impl Sync for CaptureType
impl Unpin for CaptureType
impl UnsafeUnpin for CaptureType
impl UnwindSafe for CaptureType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more