oxilean_runtime/object/rtobject_small_ctor_group.rs
1//! # RtObject - small_ctor_group Methods
2//!
3//! This module contains method implementations for `RtObject`.
4//!
5//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
6
7use super::functions::TAG_CTOR;
8use super::rtobject_type::RtObject;
9
10impl RtObject {
11 /// Create a small constructor tag.
12 ///
13 /// For inductives with no fields and a small number of constructors,
14 /// we can encode the constructor index inline.
15 pub fn small_ctor(index: u32) -> Self {
16 RtObject {
17 bits: ((TAG_CTOR as u64) << 56) | (index as u64),
18 }
19 }
20}