pub struct RecordInfo {
pub kind: RecordKind,
pub tag: Option<Symbol>,
pub layout: Option<Layout>,
pub fields: Vec<Field>,
}Expand description
What is known about one struct or union declaration.
Fields§
§kind: RecordKindWhether it is a struct or a union.
tag: Option<Symbol>The tag, absent for an anonymous one.
layout: Option<Layout>The layout, absent until the members have been seen and laid out.
This is also what says whether the type is complete. A record is incomplete from the point its tag is first mentioned until its closing brace, and code in between may declare pointers to it and nothing else.
fields: Vec<Field>The members, placed, and empty until the record is complete.
One entry per member the program wrote, in that order, so a caller that kept the declarations can index the two together.
Trait Implementations§
Source§impl Clone for RecordInfo
impl Clone for RecordInfo
Source§fn clone(&self) -> RecordInfo
fn clone(&self) -> RecordInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecordInfo
impl RefUnwindSafe for RecordInfo
impl Send for RecordInfo
impl Sync for RecordInfo
impl Unpin for RecordInfo
impl UnsafeUnpin for RecordInfo
impl UnwindSafe for RecordInfo
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