pub struct ImportedClassLayout {
pub private_members: BTreeSet<String>,
pub fields: Vec<String>,
pub optional_fields: BTreeSet<String>,
pub narrowing_checks: BTreeMap<String, FieldNarrowingCheck>,
pub methods: Vec<ImportedSlot>,
pub ctor_params: Vec<TypedParam>,
}Expand description
The resolved full layout of an imported class, handed to super::classes
so a local subclass extending it lays its own fields/methods out after the
inherited prefix.
Fields§
§private_members: BTreeSet<String>§fields: Vec<String>Full data-field names (inherited prefix then own), object-payload order.
optional_fields: BTreeSet<String>§narrowing_checks: BTreeMap<String, FieldNarrowingCheck>§methods: Vec<ImportedSlot>Full vtable method slots (inherited prefix then own/override), in order.
ctor_params: Vec<TypedParam>The class’s own constructor params, so a local subclass with an implicit constructor extending this class inherits its parameter signature.
Auto Trait Implementations§
impl Freeze for ImportedClassLayout
impl RefUnwindSafe for ImportedClassLayout
impl Send for ImportedClassLayout
impl Sync for ImportedClassLayout
impl Unpin for ImportedClassLayout
impl UnsafeUnpin for ImportedClassLayout
impl UnwindSafe for ImportedClassLayout
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