Struct leo_ast::expressions::TupleExpression
source · pub struct TupleExpression {
pub elements: Vec<Expression>,
pub span: Span,
}
Expand description
A tuple expression, e.g., (foo, false, 42)
.
Fields§
§elements: Vec<Expression>
The elements of the tuple.
In the example above, it would be foo
, false
, and 42
.
span: Span
The span from (
to )
.
Trait Implementations§
source§impl Clone for TupleExpression
impl Clone for TupleExpression
source§fn clone(&self) -> TupleExpression
fn clone(&self) -> TupleExpression
Returns a copy of the value. Read more
1.0.0 · 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 TupleExpression
impl Debug for TupleExpression
source§impl<'de> Deserialize<'de> for TupleExpression
impl<'de> Deserialize<'de> for TupleExpression
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
source§impl Display for TupleExpression
impl Display for TupleExpression
source§impl Node for TupleExpression
impl Node for TupleExpression
source§impl PartialEq<TupleExpression> for TupleExpression
impl PartialEq<TupleExpression> for TupleExpression
source§fn eq(&self, other: &TupleExpression) -> bool
fn eq(&self, other: &TupleExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleExpression
impl Serialize for TupleExpression
impl Eq for TupleExpression
impl StructuralEq for TupleExpression
impl StructuralPartialEq for TupleExpression
Auto Trait Implementations§
impl RefUnwindSafe for TupleExpression
impl Send for TupleExpression
impl Sync for TupleExpression
impl Unpin for TupleExpression
impl UnwindSafe for TupleExpression
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.