Struct chalk_parse::ast::AdtDefn
source · pub struct AdtDefn {
pub name: Identifier,
pub variable_kinds: Vec<VariableKind>,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub variants: Vec<Variant>,
pub flags: AdtFlags,
pub repr: AdtRepr,
pub variances: Option<Vec<Variance>>,
}
Fields§
§name: Identifier
§variable_kinds: Vec<VariableKind>
§where_clauses: Vec<QuantifiedWhereClause>
§variants: Vec<Variant>
§flags: AdtFlags
§repr: AdtRepr
§variances: Option<Vec<Variance>>
Trait Implementations§
source§impl PartialEq for AdtDefn
impl PartialEq for AdtDefn
impl Eq for AdtDefn
impl StructuralPartialEq for AdtDefn
Auto Trait Implementations§
impl Freeze for AdtDefn
impl RefUnwindSafe for AdtDefn
impl Send for AdtDefn
impl Sync for AdtDefn
impl Unpin for AdtDefn
impl UnwindSafe for AdtDefn
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)