pub enum NativeStmt {
Show 15 variants
Literal {
dest: ValueId,
literal: NativeLiteral,
},
Primitive {
dest: ValueId,
op: PrimitiveOp,
args: Vec<ValueId>,
},
DirectCall {
dest: ValueId,
target: String,
args: Vec<ValueId>,
},
Tuple {
dest: ValueId,
items: Vec<ValueId>,
},
Record {
dest: ValueId,
base: Option<ValueId>,
fields: Vec<NativeRecordField>,
},
RecordWithoutFields {
dest: ValueId,
base: ValueId,
fields: Vec<Name>,
},
Variant {
dest: ValueId,
tag: Name,
value: Option<ValueId>,
},
Select {
dest: ValueId,
base: ValueId,
field: Name,
},
TupleGet {
dest: ValueId,
tuple: ValueId,
index: usize,
},
VariantTagEq {
dest: ValueId,
variant: ValueId,
tag: Name,
},
VariantPayload {
dest: ValueId,
variant: ValueId,
},
ValueEq {
dest: ValueId,
left: ValueId,
right: ValueId,
},
BoolAnd {
dest: ValueId,
left: ValueId,
right: ValueId,
},
MakeClosure {
dest: ValueId,
target: String,
captures: Vec<ValueId>,
},
ClosureCall {
dest: ValueId,
callee: ValueId,
args: Vec<ValueId>,
},
}Variants§
Literal
Primitive
DirectCall
Tuple
Record
RecordWithoutFields
Variant
Select
TupleGet
VariantTagEq
VariantPayload
ValueEq
BoolAnd
MakeClosure
ClosureCall
Trait Implementations§
Source§impl Clone for NativeStmt
impl Clone for NativeStmt
Source§fn clone(&self) -> NativeStmt
fn clone(&self) -> NativeStmt
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 moreSource§impl Debug for NativeStmt
impl Debug for NativeStmt
Source§impl PartialEq for NativeStmt
impl PartialEq for NativeStmt
Source§fn eq(&self, other: &NativeStmt) -> bool
fn eq(&self, other: &NativeStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NativeStmt
impl StructuralPartialEq for NativeStmt
Auto Trait Implementations§
impl Freeze for NativeStmt
impl RefUnwindSafe for NativeStmt
impl Send for NativeStmt
impl Sync for NativeStmt
impl Unpin for NativeStmt
impl UnsafeUnpin for NativeStmt
impl UnwindSafe for NativeStmt
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.