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
Fields
template: Pattern
This extractor’s pattern.
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
Fields
name: Sym
The external name of the extractor function.
infallible: bool
Is the external extractor infallible?
pos: Pos
The position where this external extractor was declared.
A term defined solely by an external extractor function.
Trait Implementations
sourceimpl Clone for ExtractorKind
impl Clone for ExtractorKind
sourcefn clone(&self) -> ExtractorKind
fn clone(&self) -> ExtractorKind
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 more
sourceimpl Debug for ExtractorKind
impl Debug for ExtractorKind
sourceimpl PartialEq<ExtractorKind> for ExtractorKind
impl PartialEq<ExtractorKind> for ExtractorKind
sourcefn eq(&self, other: &ExtractorKind) -> bool
fn eq(&self, other: &ExtractorKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExtractorKind) -> bool
fn ne(&self, other: &ExtractorKind) -> bool
This method tests for !=
.
impl Eq for ExtractorKind
impl StructuralEq for ExtractorKind
impl StructuralPartialEq for ExtractorKind
Auto Trait Implementations
impl RefUnwindSafe for ExtractorKind
impl Send for ExtractorKind
impl Sync for ExtractorKind
impl Unpin for ExtractorKind
impl UnwindSafe for ExtractorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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