#[repr(u8)]pub enum CaptureType {
Val = 0,
Ref = 1,
Upval = 2,
}Expand description
Capture type used by CAPTURE.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CaptureType
impl Clone for CaptureType
impl Copy for CaptureType
Source§impl Debug for CaptureType
impl Debug for CaptureType
Source§impl<'de> Deserialize<'de> for CaptureType
impl<'de> Deserialize<'de> for CaptureType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CaptureType
Source§impl Hash for CaptureType
impl Hash for CaptureType
Source§impl Ord for CaptureType
impl Ord for CaptureType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CaptureType
impl PartialEq for CaptureType
Source§impl PartialOrd for CaptureType
impl PartialOrd for CaptureType
Source§impl Serialize for CaptureType
impl Serialize 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