Struct air_script_core::ListComprehension
source · pub struct ListComprehension { /* private fields */ }
Implementations§
source§impl ListComprehension
impl ListComprehension
sourcepub fn new(expression: Expression, context: Vec<(Identifier, Iterable)>) -> Self
pub fn new(expression: Expression, context: Vec<(Identifier, Iterable)>) -> Self
Creates a new list comprehension.
sourcepub fn expression(&self) -> &Expression
pub fn expression(&self) -> &Expression
Returns the expression that is evaluated for each member of the list.
sourcepub fn context(&self) -> &[(Identifier, Iterable)]
pub fn context(&self) -> &[(Identifier, Iterable)]
Returns the context of the list comprehension.
Trait Implementations§
source§impl Clone for ListComprehension
impl Clone for ListComprehension
source§fn clone(&self) -> ListComprehension
fn clone(&self) -> ListComprehension
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 ListComprehension
impl Debug for ListComprehension
source§impl PartialEq<ListComprehension> for ListComprehension
impl PartialEq<ListComprehension> for ListComprehension
source§fn eq(&self, other: &ListComprehension) -> bool
fn eq(&self, other: &ListComprehension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.