pub struct StructDef {
pub name: InternedStr,
pub is_union: bool,
pub members: Vec<StructMemberInfo>,
}Expand description
構造体・union 定義の順序付き表現(StructEmitter 用)。
FieldsDict.field_types は HashMap でメンバー順が失われるため、こちらに
Vec で順序付き保存する。bitfield 幅は bitfield_width で表現する。
Fields§
§name: InternedStr§is_union: bool§members: Vec<StructMemberInfo>Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructDef
impl RefUnwindSafe for StructDef
impl Send for StructDef
impl Sync for StructDef
impl Unpin for StructDef
impl UnsafeUnpin for StructDef
impl UnwindSafe for StructDef
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