Enum cranelift_isle::sema::TermKind
source · [−]pub enum TermKind {
EnumVariant {
variant: VariantId,
},
Decl {
constructor_kind: Option<ConstructorKind>,
extractor_kind: Option<ExtractorKind>,
},
}
Expand description
The kind of a term.
Variants
EnumVariant
Fields
variant: VariantId
Which variant of the enum: e.g. for enum type A
if a term is
(A.A1 ...)
then the variant ID corresponds to A1
.
An enum variant constructor or extractor.
Decl
Fields
constructor_kind: Option<ConstructorKind>
The kind of this term’s constructor, if any.
extractor_kind: Option<ExtractorKind>
The kind of this term’s extractor, if any.
A term declared via a (decl ...)
form.
Trait Implementations
impl Eq for TermKind
impl StructuralEq for TermKind
impl StructuralPartialEq for TermKind
Auto Trait Implementations
impl RefUnwindSafe for TermKind
impl Send for TermKind
impl Sync for TermKind
impl Unpin for TermKind
impl UnwindSafe for TermKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more