pub struct ConDecl {
pub doc: Option<DocComment>,
pub name: Ident,
pub fields: ConFields,
pub existential_vars: Vec<TyVar>,
pub existential_context: Vec<Constraint>,
pub span: Span,
}Expand description
A data constructor declaration.
Fields§
§doc: Option<DocComment>Documentation comment.
name: IdentConstructor name.
fields: ConFieldsConstructor fields.
existential_vars: Vec<TyVar>Existentially quantified type variables (from forall a. syntax).
existential_context: Vec<Constraint>Existential context constraints (from C a => syntax).
span: SpanThe span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConDecl
impl RefUnwindSafe for ConDecl
impl Send for ConDecl
impl Sync for ConDecl
impl Unpin for ConDecl
impl UnsafeUnpin for ConDecl
impl UnwindSafe for ConDecl
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