pub struct CommonClass { /* private fields */ }Expand description
Default runtime class implementation.
Implementations§
Trait Implementations§
Source§impl Class for CommonClass
impl Class for CommonClass
fn parents(&self) -> &[Vec<String>]
fn constructors(&self) -> &[Constructor]
fn constructor(&self, args: &[Rc<dyn Type>]) -> Option<&Constructor>
fn predicates(&self) -> Vec<Rc<Predicate>>
fn classes(&self) -> Vec<Rc<dyn Class>>
fn instances(&self) -> Vec<Rc<Object>>
Source§impl Debug for CommonClass
impl Debug for CommonClass
Source§impl Scope for CommonClass
impl Scope for CommonClass
fn as_class(self: Rc<Self>) -> Option<Rc<dyn Class>>
fn core(self: Rc<Self>) -> Rc<dyn Core>
fn scope(&self) -> Option<Rc<dyn Scope>>
fn get_field(&self, name: &str) -> Option<Rc<Field>>
fn get_method(&self, name: &str, classes: &[Rc<dyn Type>]) -> Option<Rc<Method>>
fn get_type(&self, name: &str) -> Option<Rc<dyn Type>>
fn get_predicate(&self, name: &str) -> Option<Rc<Predicate>>
Source§impl Type for CommonClass
impl Type for CommonClass
Auto Trait Implementations§
impl !Freeze for CommonClass
impl !RefUnwindSafe for CommonClass
impl !Send for CommonClass
impl !Sync for CommonClass
impl Unpin for CommonClass
impl UnsafeUnpin for CommonClass
impl !UnwindSafe for CommonClass
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