Struct erg_compiler::hir::ListComprehension
source · pub struct ListComprehension {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub t: Type,
pub elem: Box<Expr>,
pub guard: Box<Expr>,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§t: Type
§elem: Box<Expr>
§guard: Box<Expr>
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 Display for ListComprehension
impl Display for ListComprehension
source§impl HasType for ListComprehension
impl HasType for ListComprehension
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> Option<&mut Type>
fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl Hash for ListComprehension
impl Hash for ListComprehension
source§impl Locational for ListComprehension
impl Locational for ListComprehension
source§impl NestedDisplay for ListComprehension
impl NestedDisplay for ListComprehension
source§impl NoTypeDisplay for ListComprehension
impl NoTypeDisplay for ListComprehension
fn to_string_notype(&self) -> String
source§impl PartialEq for ListComprehension
impl PartialEq 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 ==
.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