Struct erg_compiler::ty::value::IntersectionTypeObj
source · pub struct IntersectionTypeObj {
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 IntersectionTypeObj
impl Clone for IntersectionTypeObj
source§fn clone(&self) -> IntersectionTypeObj
fn clone(&self) -> IntersectionTypeObj
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 IntersectionTypeObj
impl Debug for IntersectionTypeObj
source§impl Hash for IntersectionTypeObj
impl Hash for IntersectionTypeObj
source§impl PartialEq<IntersectionTypeObj> for IntersectionTypeObj
impl PartialEq<IntersectionTypeObj> for IntersectionTypeObj
source§fn eq(&self, other: &IntersectionTypeObj) -> bool
fn eq(&self, other: &IntersectionTypeObj) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IntersectionTypeObj
impl StructuralEq for IntersectionTypeObj
impl StructuralPartialEq for IntersectionTypeObj
Auto Trait Implementations§
impl !RefUnwindSafe for IntersectionTypeObj
impl !Send for IntersectionTypeObj
impl !Sync for IntersectionTypeObj
impl Unpin for IntersectionTypeObj
impl !UnwindSafe for IntersectionTypeObj
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