pub struct UnionMeta {
pub base: Base,
pub types: UnionMetaTypes,
}
Expand description
Type information that defines a union type.
Fields§
§base: Base
Base type of the union type.
types: UnionMetaTypes
Types that are unified in this union type.
Trait Implementations§
Source§impl TypeEq for UnionMeta
impl TypeEq for UnionMeta
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, ctx: &MetaTypes)
fn type_hash<H: Hasher>(&self, hasher: &mut H, ctx: &MetaTypes)
Feeds this value into the given
Hasher
.Source§fn type_eq(&self, other: &Self, ctx: &MetaTypes) -> bool
fn type_eq(&self, other: &Self, ctx: &MetaTypes) -> 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: &MetaTypes)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
Feeds a slice of this value into the given
Hasher
.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> 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: &MetaTypes) -> 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 UnionMeta
impl RefUnwindSafe for UnionMeta
impl Send for UnionMeta
impl Sync for UnionMeta
impl Unpin for UnionMeta
impl UnwindSafe for UnionMeta
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