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 for UnionTypeObj
impl PartialEq 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 ==
.impl Eq for UnionTypeObj
impl StructuralPartialEq for UnionTypeObj
Auto Trait Implementations§
impl Freeze for UnionTypeObj
impl RefUnwindSafe for UnionTypeObj
impl Send for UnionTypeObj
impl Sync for UnionTypeObj
impl Unpin for UnionTypeObj
impl UnwindSafe for UnionTypeObj
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more