pub enum UnionMemberType<'a> {
Single(AttributedNonAnyType<'a>),
Union(MayBeNull<UnionType<'a>>),
}
Expand description
Parses one of the member of a union type
Variants§
Single(AttributedNonAnyType<'a>)
Union(MayBeNull<UnionType<'a>>)
Trait Implementations§
Source§impl<'a> Clone for UnionMemberType<'a>
impl<'a> Clone for UnionMemberType<'a>
Source§fn clone(&self) -> UnionMemberType<'a>
fn clone(&self) -> UnionMemberType<'a>
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<'a> Debug for UnionMemberType<'a>
impl<'a> Debug for UnionMemberType<'a>
Source§impl<'a> From<AttributedNonAnyType<'a>> for UnionMemberType<'a>
impl<'a> From<AttributedNonAnyType<'a>> for UnionMemberType<'a>
Source§fn from(x: AttributedNonAnyType<'a>) -> Self
fn from(x: AttributedNonAnyType<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
Source§impl<'a> Hash for UnionMemberType<'a>
impl<'a> Hash for UnionMemberType<'a>
Source§impl<'a> Ord for UnionMemberType<'a>
impl<'a> Ord for UnionMemberType<'a>
Source§fn cmp(&self, other: &UnionMemberType<'a>) -> Ordering
fn cmp(&self, other: &UnionMemberType<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for UnionMemberType<'a>
impl<'a> Parse<'a> for UnionMemberType<'a>
Source§impl<'a> PartialEq for UnionMemberType<'a>
impl<'a> PartialEq for UnionMemberType<'a>
Source§impl<'a> PartialOrd for UnionMemberType<'a>
impl<'a> PartialOrd for UnionMemberType<'a>
impl<'a> Eq for UnionMemberType<'a>
impl<'a> StructuralPartialEq for UnionMemberType<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnionMemberType<'a>
impl<'a> RefUnwindSafe for UnionMemberType<'a>
impl<'a> Send for UnionMemberType<'a>
impl<'a> Sync for UnionMemberType<'a>
impl<'a> Unpin for UnionMemberType<'a>
impl<'a> UnwindSafe for UnionMemberType<'a>
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