Struct erg_compiler::hir::TypeSpecWithOp
source · pub struct TypeSpecWithOp {
pub op: Token,
pub t_spec: TypeSpec,
pub t_spec_as_expr: Box<Expr>,
pub spec_t: Type,
}
Fields§
§op: Token
§t_spec: TypeSpec
§t_spec_as_expr: Box<Expr>
§spec_t: Type
Implementations§
Trait Implementations§
source§impl Clone for TypeSpecWithOp
impl Clone for TypeSpecWithOp
source§fn clone(&self) -> TypeSpecWithOp
fn clone(&self) -> TypeSpecWithOp
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 TypeSpecWithOp
impl Debug for TypeSpecWithOp
source§impl Display for TypeSpecWithOp
impl Display for TypeSpecWithOp
source§impl Hash for TypeSpecWithOp
impl Hash for TypeSpecWithOp
source§impl Locational for TypeSpecWithOp
impl Locational for TypeSpecWithOp
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 TypeSpecWithOp
impl NestedDisplay for TypeSpecWithOp
source§impl PartialEq<TypeSpecWithOp> for TypeSpecWithOp
impl PartialEq<TypeSpecWithOp> for TypeSpecWithOp
source§fn eq(&self, other: &TypeSpecWithOp) -> bool
fn eq(&self, other: &TypeSpecWithOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.