pub struct DClass {
class_name: String,
class_id: DClassId,
is_bogus_class: bool,
constructor: Option<DCAtomicField>,
fields: Vec<ClassField>,
}Expand description
Represents a Distributed Class defined in the DC file. Contains a map of DC Fields, as well as atomic and molecular fields that are declared within the class. Also stores other properties such as its hierarchy.
Fields§
§class_name: String§class_id: DClassId§is_bogus_class: bool§constructor: Option<DCAtomicField>§fields: Vec<ClassField>Implementations§
Source§impl DClass
impl DClass
pub fn get_name(&self) -> String
pub fn get_dclass_id(&self) -> DClassId
pub fn has_constructor(&self) -> bool
pub fn get_constructor(&self) -> Option<&DCAtomicField>
Trait Implementations§
Source§impl LegacyDCHash for DClass
impl LegacyDCHash for DClass
Source§fn generate_hash(&self, hashgen: &mut DCHashGenerator)
fn generate_hash(&self, hashgen: &mut DCHashGenerator)
Accumulates the properties of this DC element into the file hash.
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