Struct erg_compiler::ty::value::UnionTypeObj
source · pub struct UnionTypeObj {
pub t: Type,
pub lhs: Box<TypeObj>,
pub rhs: Box<TypeObj>,
}
Fields§
§t: Type
§lhs: Box<TypeObj>
§rhs: Box<TypeObj>
Implementations§
Trait Implementations§
source§impl Clone for UnionTypeObj
impl Clone for UnionTypeObj
source§fn clone(&self) -> UnionTypeObj
fn clone(&self) -> UnionTypeObj
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 UnionTypeObj
impl Debug for UnionTypeObj
source§impl Hash for UnionTypeObj
impl Hash for UnionTypeObj
source§impl PartialEq<UnionTypeObj> for UnionTypeObj
impl PartialEq<UnionTypeObj> for UnionTypeObj
source§fn eq(&self, other: &UnionTypeObj) -> bool
fn eq(&self, other: &UnionTypeObj) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.