pub struct Decl {
pub lexical_ordinal: u32,
pub identity: Identity,
pub doc: Option<String>,
pub members: Vec<MemberDoc>,
pub params: Vec<String>,
pub opaque: bool,
pub body: Body,
}Expand description
A declared type.
Fields§
§lexical_ordinal: u32Source-derived same-name ordinal, including aliases in its enumeration.
identity: IdentityIts identity.
doc: Option<String>Its /// doc comment, with the markers removed, if it has one.
members: Vec<MemberDoc>Its members’ doc comments: for a record, one per field, and for an enum, one per constructor, in declaration order. A member past the end of the list has none.
params: Vec<String>Its type parameters’ names, which Type::Param counts.
opaque: boolWhether it is declared opaque, so that decoding cannot build it.
body: BodyWhat it declares.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Decl
impl Freeze for Declwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MemberDoc>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<RecordShape> is !null: Freeze,
PhantomData<ArcInner<RecordShape>>: Freeze,
PhantomData<Type>: Freeze,
*const ArcInner<EnumShape> is !null: Freeze,
PhantomData<ArcInner<EnumShape>>: Freeze,
PhantomData<Vec<Type>>: Freeze,
*const Type is !null: Freeze,
impl Move for Decl
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnsafeUnpin for Declwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MemberDoc>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<RecordShape> is !null: UnsafeUnpin,
PhantomData<ArcInner<RecordShape>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const ArcInner<EnumShape> is !null: UnsafeUnpin,
PhantomData<ArcInner<EnumShape>>: UnsafeUnpin,
PhantomData<Vec<Type>>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
impl UnwindSafe for Declwhere
RawVecInner: UnwindSafe,
Arc<RecordShape>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<EnumShape>: UnwindSafe,
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