Struct donet_core::dclass::interim::DClass
source · pub struct DClass {
pub span: Span,
pub identifier: String,
pub parents: Vec<String>,
pub fields: Vec<AtomicOrMolecular>,
pub class_id: DClassId,
pub is_bogus_class: bool,
pub class_parents: Vec<Rc<RefCell<DClass>>>,
}
Fields§
§span: Span
§identifier: String
§parents: Vec<String>
§fields: Vec<AtomicOrMolecular>
§class_id: DClassId
§is_bogus_class: bool
§class_parents: Vec<Rc<RefCell<DClass>>>
Implementations§
source§impl DClass
impl DClass
pub fn add_parent(&mut self, parent: Rc<RefCell<DClass>>)
sourcepub fn add_class_field(&mut self, field: AtomicOrMolecular)
pub fn add_class_field(&mut self, field: AtomicOrMolecular)
Adds a newly allocated DC field to this class. The field structure
in memory is moved into ownership of this class structure, and is
wrapped in a std::cell::RefCell
and an std::rc::Rc
pointer
to pass references to other elements, such as molecular fields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DClass
impl !RefUnwindSafe for DClass
impl !Send for DClass
impl !Sync for DClass
impl Unpin for DClass
impl !UnwindSafe for DClass
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