pub struct DataType<'tree> {
pub span: Span,
pub constructors: Option<DataTypeConstructors<'tree>>,
pub context: Option<Context<'tree>>,
pub deriving: Vec<Deriving<'tree>>,
pub forall: Option<DataTypeForall<'tree>>,
pub kind: Option<QuantifiedType<'tree>>,
pub name: Option<DataTypeName<'tree>>,
pub patterns: Option<DataTypePatterns<'tree>>,
pub children: Option<DataTypeChildren<'tree>>,
}Fields§
§span: Span§constructors: Option<DataTypeConstructors<'tree>>§context: Option<Context<'tree>>§deriving: Vec<Deriving<'tree>>§forall: Option<DataTypeForall<'tree>>§kind: Option<QuantifiedType<'tree>>§name: Option<DataTypeName<'tree>>§patterns: Option<DataTypePatterns<'tree>>§children: Option<DataTypeChildren<'tree>>Trait Implementations§
impl<'tree> Eq for DataType<'tree>
impl<'tree> StructuralPartialEq for DataType<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for DataType<'tree>
impl<'tree> RefUnwindSafe for DataType<'tree>
impl<'tree> Send for DataType<'tree>
impl<'tree> Sync for DataType<'tree>
impl<'tree> Unpin for DataType<'tree>
impl<'tree> UnsafeUnpin for DataType<'tree>
impl<'tree> UnwindSafe for DataType<'tree>
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