#[repr(u8)]pub enum DefinitionTag {
Address = 1,
GlobalVar = 2,
ListDef = 3,
ListItem = 4,
ExternalFn = 5,
StructDef = 6,
LocalVar = 7,
}Expand description
Tag discriminant stored in the high byte of a DefinitionId.
Variants§
Address = 1
GlobalVar = 2
ListDef = 3
ListItem = 4
ExternalFn = 5
StructDef = 6
A STRUCT shape declaration (TM-4b, docs/typed-mode-spec.md §6).
Compiler-side bookkeeping only — the analyzer’s SymbolIndex needs a
stable DefinitionId for a struct name like every other declared
symbol (duplicate detection, goto-def, resolution), but this tag is
never serialized to .inkb: the runtime-facing shape identity is the
separate ShapeId/StructShapes space brink-format::value already
reserves, which TM-4c’s codegen populates once struct constructs
lower to bytecode. Until then a StructDef-tagged id never reaches
the linker.
LocalVar = 7
Params and temps — scoped to a container, not serialized in bytecode.
Implementations§
Trait Implementations§
Source§impl Clone for DefinitionTag
impl Clone for DefinitionTag
Source§fn clone(&self) -> DefinitionTag
fn clone(&self) -> DefinitionTag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefinitionTag
Source§impl Debug for DefinitionTag
impl Debug for DefinitionTag
impl Eq for DefinitionTag
Source§impl Hash for DefinitionTag
impl Hash for DefinitionTag
Source§impl PartialEq for DefinitionTag
impl PartialEq for DefinitionTag
impl StructuralPartialEq for DefinitionTag
Auto Trait Implementations§
impl Freeze for DefinitionTag
impl RefUnwindSafe for DefinitionTag
impl Send for DefinitionTag
impl Sync for DefinitionTag
impl Unpin for DefinitionTag
impl UnsafeUnpin for DefinitionTag
impl UnwindSafe for DefinitionTag
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