Struct erg_parser::ast::ConstLambda
source · pub struct ConstLambda {
pub sig: Box<LambdaSignature>,
pub op: Token,
pub body: ConstBlock,
pub id: DefId,
}
Fields§
§sig: Box<LambdaSignature>
§op: Token
§body: ConstBlock
§id: DefId
Implementations§
source§impl ConstLambda
impl ConstLambda
pub fn new(sig: LambdaSignature, op: Token, body: ConstBlock, id: DefId) -> Self
pub fn downcast(self) -> Lambda
Trait Implementations§
source§impl Clone for ConstLambda
impl Clone for ConstLambda
source§fn clone(&self) -> ConstLambda
fn clone(&self) -> ConstLambda
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 ConstLambda
impl Debug for ConstLambda
source§impl Display for ConstLambda
impl Display for ConstLambda
source§impl Hash for ConstLambda
impl Hash for ConstLambda
source§impl Locational for ConstLambda
impl Locational for ConstLambda
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for ConstLambda
impl NestedDisplay for ConstLambda
source§impl PartialEq<ConstLambda> for ConstLambda
impl PartialEq<ConstLambda> for ConstLambda
source§fn eq(&self, other: &ConstLambda) -> bool
fn eq(&self, other: &ConstLambda) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.