pub struct UnionInfo {
pub base: Base,
pub types: UnionTypesInfo,
}Expand description
Type information that defines a union type.
Fields§
§base: BaseBase type of the union type.
types: UnionTypesInfoTypes that are unified in this union type.
Trait Implementations§
Source§impl TypeEq for UnionInfo
impl TypeEq for UnionInfo
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, ctx: &Types)
fn type_hash<H: Hasher>(&self, hasher: &mut H, ctx: &Types)
Feeds this value into the given
Hasher.Source§fn type_eq(&self, other: &Self, ctx: &Types) -> bool
fn type_eq(&self, other: &Self, ctx: &Types) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
Feeds a slice of this value into the given
Hasher.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for UnionInfo
impl RefUnwindSafe for UnionInfo
impl Send for UnionInfo
impl Sync for UnionInfo
impl Unpin for UnionInfo
impl UnwindSafe for UnionInfo
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