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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 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