pub struct ElementType {
pub type_name: &'static str,
pub arity: usize,
pub predefined_slot: usize,
pub predefined_optional: bool,
pub fallback_attr: &'static str,
pub fallback_slot: usize,
pub family: Family,
pub members: &'static [&'static str],
}Expand description
One element type: its STEP name, slots, and enum tokens.
Fields§
§type_name: &'static strSTEP type name, upper-case as stored.
arity: usizeTotal attribute count, including inherited.
predefined_slot: usizeSlot holding PredefinedType.
predefined_optional: boolWhether PredefinedType is itself optional.
fallback_attr: &'static strName of the attribute USERDEFINED falls back to.
fallback_slot: usizeSlot of that fallback attribute. Always 8.
family: FamilyWhich supertype layout slots 6 and 7 follow.
members: &'static [&'static str]Permitted PredefinedType tokens.
Trait Implementations§
Source§impl Clone for ElementType
impl Clone for ElementType
impl Copy for ElementType
Source§impl Debug for ElementType
impl Debug for ElementType
impl Eq for ElementType
Source§impl PartialEq for ElementType
impl PartialEq for ElementType
impl StructuralPartialEq for ElementType
Auto Trait Implementations§
impl Freeze for ElementType
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnsafeUnpin for ElementType
impl UnwindSafe for ElementType
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