pub struct Class {
pub types: &'static [&'static str],
pub required: &'static [&'static str],
pub optional: &'static [&'static str],
pub slotted: bool,
}Expand description
A class’s attrs fields (classes/generated.py), and whether object
mode builds it as an UnknownObject when given a field it lacks
(PARITY.md section 9.2.1: a non-empty __slots__).
Fields§
§types: &'static [&'static str]The node types that look this class up (a node’s m_Type).
required: &'static [&'static str]Fields without a default.
optional: &'static [&'static str]Fields whose default is None.
slotted: boolA non-empty __slots__: an extra field gives an UnknownObject.
Trait Implementations§
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