pub struct ShapeId(pub u32);Expand description
Identifies a struct shape (TM-4, docs/typed-mode-spec.md §6) within the
compiled story’s StructShapes section (docs/format-spec.md, section
tag 0x0C).
Distinct from crate::id::DefinitionId: a STRUCT declaration is a
compile-time nominal type, not a runtime storage location, so its wire
footprint is this flat u32 index into StructShapes, not a tagged
definition id. Assigned deterministically at codegen time (sorted by
declared struct name, never HashMap iteration order — CLAUDE.md).
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for ShapeId
Source§impl<'de> Deserialize<'de> for ShapeId
impl<'de> Deserialize<'de> for ShapeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShapeId
Source§impl Ord for ShapeId
impl Ord for ShapeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ShapeId
impl PartialOrd for ShapeId
impl StructuralPartialEq for ShapeId
Auto Trait Implementations§
impl Freeze for ShapeId
impl RefUnwindSafe for ShapeId
impl Send for ShapeId
impl Sync for ShapeId
impl Unpin for ShapeId
impl UnsafeUnpin for ShapeId
impl UnwindSafe for ShapeId
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