[−][src]Enum lark_hir::ExpressionData
Variants
Let
let <var> = <initializer> in <body>
Fields of Let
Place
reference to a local variable X
or a path like X.Y.Z
Fields of Place
place: Place
Assignment
<place> = <value>
Fields of Assignment
place: Place
value: Expression
MethodCall
<arg0>.method(<arg1..>)
Fields of MethodCall
method: Identifier
arguments: List<Expression>
Call
function(<args>)
Fields of Call
function: Expression
arguments: List<Expression>
Sequence
E1; E2
Fields of Sequence
first: Expression
second: Expression
If
if E1 { E2 } else { E3 }
Fields of If
Binary
E1 (op) E2
Fields of Binary
Unary
(op) E
Fields of Unary
operator: UnaryOperator
value: Expression
Literal
A literal value
Fields of Literal
data: LiteralData
Aggregate
Construct a value of some aggregate type, such as a struct or tuple:
Struct { field1: expression1, ... fieldN: expressionN }
Fields of Aggregate
entity: Entity
fields: List<IdentifiedExpression>
Unit
()
Fields of Unit
Error
Error
-- some error condition
Fields of Error
error: Error
Trait Implementations
impl HirIndexData for ExpressionData
[src]
type Index = Expression
fn index_vec(hir: &FnBodyTables) -> &IndexVec<Self::Index, Self>
[src]
fn index_vec_mut(hir: &mut FnBodyTables) -> &mut IndexVec<Self::Index, Self>
[src]
impl Eq for ExpressionData
[src]
impl Clone for ExpressionData
[src]
fn clone(&self) -> ExpressionData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ExpressionData
[src]
impl PartialEq<ExpressionData> for ExpressionData
[src]
fn eq(&self, other: &ExpressionData) -> bool
[src]
fn ne(&self, other: &ExpressionData) -> bool
[src]
impl Hash for ExpressionData
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for ExpressionData
[src]
impl DebugWith for ExpressionData
[src]
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result
[src]
fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where
Cx: ?Sized,
[src]
Cx: ?Sized,
fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where
Cx: ?Sized,
[src]
Cx: ?Sized,
Auto Trait Implementations
impl Send for ExpressionData
impl Sync for ExpressionData
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<Cx, T> FmtWithSpecialized for T where
Cx: ?Sized,
T: Debug + ?Sized,
[src]
Cx: ?Sized,
T: Debug + ?Sized,