Enum cranelift_isle::sema::ExtractorKind
source · pub enum ExtractorKind {
InternalExtractor {
template: Pattern,
},
ExternalExtractor {
name: Sym,
infallible: bool,
pos: Pos,
},
}
Expand description
The kind of an extractor for a term.
Variants§
InternalExtractor
A term that defines an “extractor macro” in the LHS of a pattern. Its arguments take patterns and are simply substituted with the given patterns when used.
ExternalExtractor
A term defined solely by an external extractor function.
Trait Implementations§
source§impl Clone for ExtractorKind
impl Clone for ExtractorKind
source§fn clone(&self) -> ExtractorKind
fn clone(&self) -> ExtractorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtractorKind
impl Debug for ExtractorKind
source§impl PartialEq for ExtractorKind
impl PartialEq for ExtractorKind
impl Eq for ExtractorKind
impl StructuralPartialEq for ExtractorKind
Auto Trait Implementations§
impl Freeze for ExtractorKind
impl RefUnwindSafe for ExtractorKind
impl Send for ExtractorKind
impl Sync for ExtractorKind
impl Unpin for ExtractorKind
impl UnwindSafe for ExtractorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)