pub struct ListComprehension {
pub expression: Expression,
pub variable: String,
pub iterable: Expression,
pub condition: Option<Expression>,
}Expand description
List comprehension expression.
Fields§
§expression: ExpressionOutput expression.
variable: StringLoop variable name.
iterable: ExpressionIterable expression.
condition: Option<Expression>Optional filter condition.
Trait Implementations§
Source§impl Clone for ListComprehension
impl Clone for ListComprehension
Source§fn clone(&self) -> ListComprehension
fn clone(&self) -> ListComprehension
Returns a duplicate 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 for ListComprehension
impl PartialEq for ListComprehension
impl Eq for ListComprehension
impl StructuralPartialEq for ListComprehension
Auto Trait Implementations§
impl Freeze for ListComprehension
impl RefUnwindSafe for ListComprehension
impl Send for ListComprehension
impl Sync for ListComprehension
impl Unpin for ListComprehension
impl UnsafeUnpin for ListComprehension
impl UnwindSafe for ListComprehension
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