Struct erg_compiler::hir::DictComprehension
source · [−]pub struct DictComprehension {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub t: Type,
pub key: Box<Expr>,
pub value: Box<Expr>,
pub guard: Box<Expr>,
}
Fields
l_sqbr: Token
r_sqbr: Token
t: Type
key: Box<Expr>
value: Box<Expr>
guard: Box<Expr>
Trait Implementations
sourceimpl Clone for DictComprehension
impl Clone for DictComprehension
sourcefn clone(&self) -> DictComprehension
fn clone(&self) -> DictComprehension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DictComprehension
impl Debug for DictComprehension
sourceimpl Display for DictComprehension
impl Display for DictComprehension
sourceimpl HasType for DictComprehension
impl HasType for DictComprehension
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> &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, Global>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
sourceimpl Locational for DictComprehension
impl Locational for DictComprehension
sourceimpl NestedDisplay for DictComprehension
impl NestedDisplay for DictComprehension
Auto Trait Implementations
impl !RefUnwindSafe for DictComprehension
impl !Send for DictComprehension
impl !Sync for DictComprehension
impl Unpin for DictComprehension
impl !UnwindSafe for DictComprehension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more