pub enum TypeDeclBody<P: Phase = Raw> {
Required,
Constructors(Vec<UnionMember<P>>),
}Expand description
Body of a type declaration.
Variants§
Required
Required type with no body: type T;.
Constructors(Vec<UnionMember<P>>)
Tagged-union constructor list: type T { Ctor, Other(x: U) }.
Trait Implementations§
Source§impl<P: Clone + Phase> Clone for TypeDeclBody<P>
impl<P: Clone + Phase> Clone for TypeDeclBody<P>
Source§fn clone(&self) -> TypeDeclBody<P>
fn clone(&self) -> TypeDeclBody<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FormatEquivalent for TypeDeclBody
impl FormatEquivalent for TypeDeclBody
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for TypeDeclBody<P>
impl<P> RefUnwindSafe for TypeDeclBody<P>
impl<P> Send for TypeDeclBody<P>
impl<P> Sync for TypeDeclBody<P>
impl<P> Unpin for TypeDeclBody<P>
impl<P> UnsafeUnpin for TypeDeclBody<P>
impl<P> UnwindSafe for TypeDeclBody<P>
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