pub struct Union {
pub name: Name,
pub visibility: RawVisibilityId,
pub generic_params: Interned<GenericParams>,
pub fields: Fields,
pub ast_id: FileAstId<Union>,
}
Fields§
§name: Name
§visibility: RawVisibilityId
§generic_params: Interned<GenericParams>
§fields: Fields
§ast_id: FileAstId<Union>
Trait Implementations§
source§impl GenericsItemTreeNode for Union
impl GenericsItemTreeNode for Union
fn generic_params(&self) -> &Interned<GenericParams>
source§impl ItemTreeNode for Union
impl ItemTreeNode for Union
source§impl PartialEq for Union
impl PartialEq for Union
impl Eq for Union
impl StructuralPartialEq for Union
Auto Trait Implementations§
impl Freeze for Union
impl RefUnwindSafe for Union
impl Send for Union
impl Sync for Union
impl Unpin for Union
impl UnwindSafe for Union
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.