Struct erg_parser::ast::TypeAscription
source · Expand description
type_ascription ::= expr ‘:’ type | expr ‘<:’ type | expr ‘:>’ type
Fields§
§expr: Box<Expr>
§op: Token
§t_spec: TypeSpec
Implementations§
Trait Implementations§
source§impl Clone for TypeAscription
impl Clone for TypeAscription
source§fn clone(&self) -> TypeAscription
fn clone(&self) -> TypeAscription
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 TypeAscription
impl Debug for TypeAscription
source§impl Display for TypeAscription
impl Display for TypeAscription
source§impl Hash for TypeAscription
impl Hash for TypeAscription
source§impl Locational for TypeAscription
impl Locational for TypeAscription
source§impl NestedDisplay for TypeAscription
impl NestedDisplay for TypeAscription
source§impl PartialEq<TypeAscription> for TypeAscription
impl PartialEq<TypeAscription> for TypeAscription
source§fn eq(&self, other: &TypeAscription) -> bool
fn eq(&self, other: &TypeAscription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.