pub struct SumTypeDecl {
pub name: QualifiedIdent,
pub docs: Vec<String>,
pub parameters: Telescope<Argument>,
pub indices: Telescope<Argument>,
pub constructors: Vec<Constructor>,
pub attrs: Vec<Attribute>,
}
Expand description
An algebraic data type definition that supports parametric and indexed data type definitions.
Fields§
§name: QualifiedIdent
§docs: Vec<String>
§parameters: Telescope<Argument>
§indices: Telescope<Argument>
§constructors: Vec<Constructor>
§attrs: Vec<Attribute>
Implementations§
Source§impl SumTypeDecl
impl SumTypeDecl
pub fn extract_book_info(&self) -> EntryMeta
Trait Implementations§
Source§impl Clone for SumTypeDecl
impl Clone for SumTypeDecl
Source§fn clone(&self) -> SumTypeDecl
fn clone(&self) -> SumTypeDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SumTypeDecl
impl RefUnwindSafe for SumTypeDecl
impl Send for SumTypeDecl
impl Sync for SumTypeDecl
impl Unpin for SumTypeDecl
impl UnwindSafe for SumTypeDecl
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