pub enum MirRvalue {
Show 18 variants
Use(MirOperand),
Unary(OperatorKind, MirOperand),
Binary(MirOperand, OperatorKind, MirOperand),
ShortCircuit {
left: MirOperand,
op: MirShortCircuitOp,
right_temps: Vec<MirStmt>,
right: MirOperand,
},
Range {
start: MirOperand,
step: Option<MirOperand>,
end: MirOperand,
},
Call(MirCall),
Aggregate {
kind: MirAggregateKind,
rows: usize,
cols: usize,
elements: Vec<MirOperand>,
},
StructLiteral {
fields: Vec<(MemberName, MirOperand)>,
},
ObjectLiteral {
class_name: QualifiedName,
fields: Vec<(MemberName, MirOperand)>,
},
Index {
base: MirOperand,
indexing: MirIndexing,
},
Member {
base: MirOperand,
member: MemberName,
},
DynamicMember {
base: MirOperand,
member: MirOperand,
},
WorkspaceFirstStaticProperty {
workspace_name: SymbolName,
class_name: String,
property: MemberName,
},
MetaClass(QualifiedName),
Colon,
End,
Future {
function: FunctionId,
args: Vec<MirCallArg>,
syntax: CallSyntax,
requested_outputs: RequestedOutputCount,
},
Spawn(MirOperand),
}Variants§
Use(MirOperand)
Unary(OperatorKind, MirOperand)
Binary(MirOperand, OperatorKind, MirOperand)
ShortCircuit
Range
Call(MirCall)
Aggregate
StructLiteral
Fields
§
fields: Vec<(MemberName, MirOperand)>ObjectLiteral
Index
Member
DynamicMember
WorkspaceFirstStaticProperty
MetaClass(QualifiedName)
Colon
End
Future
Fields
§
function: FunctionId§
args: Vec<MirCallArg>§
syntax: CallSyntax§
requested_outputs: RequestedOutputCountSpawn(MirOperand)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MirRvalue
impl<'de> Deserialize<'de> for MirRvalue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MirRvalue
Auto Trait Implementations§
impl Freeze for MirRvalue
impl RefUnwindSafe for MirRvalue
impl Send for MirRvalue
impl Sync for MirRvalue
impl Unpin for MirRvalue
impl UnsafeUnpin for MirRvalue
impl UnwindSafe for MirRvalue
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