pub enum NodeKind {
Param {
name: String,
},
Local {
name: String,
},
Call {
callee: String,
},
Literal {
text: String,
},
Phi,
Return,
Unknown {
reason: String,
},
}Expand description
What an expression node represents in source.
Variants§
Param
Function / method parameter.
Local
let binding.
Call
Result of a call or method call.
Literal
Literal / constructor-ish value (dtype may still be known from DType::…).
Phi
Branch join (phi) of mutually exclusive arms.
Return
Return value of the analyzed entry / callee.
Unknown
Placeholder when the expression could not be modeled.
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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