pub struct Occurrence {
pub type_name: &'static str,
pub arity: usize,
pub predefined_slot: Option<usize>,
pub members: &'static [&'static str],
pub type_class: Option<&'static str>,
}Expand description
One occurrence class: its slots, enum, and permitted type.
Fields§
§type_name: &'static strSTEP type name, upper-case as stored.
arity: usizeTotal attribute count, including inherited.
predefined_slot: Option<usize>Slot holding PredefinedType, or None when the class has none.
members: &'static [&'static str]Permitted PredefinedType tokens; empty when there is no enum.
type_class: Option<&'static str>The one type class CorrectTypeAssigned permits, if any.
Trait Implementations§
Source§impl Clone for Occurrence
impl Clone for Occurrence
impl Copy for Occurrence
Source§impl Debug for Occurrence
impl Debug for Occurrence
impl Eq for Occurrence
Source§impl PartialEq for Occurrence
impl PartialEq for Occurrence
impl StructuralPartialEq for Occurrence
Auto Trait Implementations§
impl Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnsafeUnpin for Occurrence
impl UnwindSafe for Occurrence
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