pub struct Class {
pub name: String,
pub fields: Vec<StructField>,
pub methods: Vec<Method>,
pub constructor_params: Vec<Parameter>,
pub has_destructor: bool,
pub base_class: Option<String>,
}Expand description
Represents a C++ class (DECY-200).
Maps to Rust struct + impl block. Constructors become new(),
destructors become impl Drop.
Fields§
§name: StringClass name
fields: Vec<StructField>Data fields (inherited from struct model)
methods: Vec<Method>Methods (including constructors/destructors)
constructor_params: Vec<Parameter>Constructor parameters (from the first constructor found)
has_destructor: boolWhether a destructor was defined
base_class: Option<String>Base class name for single inheritance (DECY-209), None if no base
Implementations§
Trait Implementations§
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Forget for Class
impl Freeze for Class
impl Move for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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