pub struct UnionTypeInfo {
pub type_: Ident,
}Expand description
Type information that represents one type unified by a UnionInfo.
Fields§
§type_: IdentTarget type of this type variant.
Implementations§
Source§impl UnionTypeInfo
impl UnionTypeInfo
Sourcepub fn new(type_: Ident) -> Self
pub fn new(type_: Ident) -> Self
Create a new UnionTypeInfo from the passed type_.
Trait Implementations§
Source§impl Clone for UnionTypeInfo
impl Clone for UnionTypeInfo
Source§fn clone(&self) -> UnionTypeInfo
fn clone(&self) -> UnionTypeInfo
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 UnionTypeInfo
impl Debug for UnionTypeInfo
Source§impl TypeEq for UnionTypeInfo
impl TypeEq for UnionTypeInfo
Source§fn type_eq(&self, other: &Self, types: &Types) -> bool
fn type_eq(&self, other: &Self, types: &Types) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.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 UnionTypeInfo
impl RefUnwindSafe for UnionTypeInfo
impl Send for UnionTypeInfo
impl Sync for UnionTypeInfo
impl Unpin for UnionTypeInfo
impl UnwindSafe for UnionTypeInfo
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