#[repr(i32)]pub enum DefRegionKind {
None = 0,
Pattern = 1,
Simple = 2,
}Expand description
Definition-region state active at the current value.
Reflected fields marked SEqHashDefPattern or
SEqHashDefSimple override the inherited state for that field’s
complete recursive visit.
Variants§
None = 0
The value is outside a definition region.
Pattern = 1
Definitions apply recursively through the visited value.
Simple = 2
Definitions apply to the visited value alone; its type is walked as uses.
Trait Implementations§
Source§impl Clone for DefRegionKind
impl Clone for DefRegionKind
Source§fn clone(&self) -> DefRegionKind
fn clone(&self) -> DefRegionKind
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 DefRegionKind
Source§impl Debug for DefRegionKind
impl Debug for DefRegionKind
Source§impl Default for DefRegionKind
impl Default for DefRegionKind
Source§fn default() -> DefRegionKind
fn default() -> DefRegionKind
Returns the “default value” for a type. Read more
impl Eq for DefRegionKind
Source§impl PartialEq for DefRegionKind
impl PartialEq for DefRegionKind
Source§fn eq(&self, other: &DefRegionKind) -> bool
fn eq(&self, other: &DefRegionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefRegionKind
Auto Trait Implementations§
impl Freeze for DefRegionKind
impl RefUnwindSafe for DefRegionKind
impl Send for DefRegionKind
impl Sync for DefRegionKind
impl Unpin for DefRegionKind
impl UnsafeUnpin for DefRegionKind
impl UnwindSafe for DefRegionKind
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