Edit source

Rust source modules

@tsonic/rust/types.js

Primitive aliases

AliasNeutral meaningRust carrier
boolboolbool
i8, u8int8, uint8i8, u8
i16, u16int16, uint16i16, u16
i32, u32int32, uint32i32, u32
i64, u64int64, uint64i64, u64
i128, u128int128, uint128i128, u128
isize, usizenativeInt, nativeUintisize, usize
f32, f64float32, float64f32, f64

Native type contracts

ExportMeaning
LifeKind used for authored Rust lifetime parameters
StaticRust 'static lifetime
PlaceholderRust '_ placeholder lifetime
Ref<T, L>Shared native reference &'l T
Mut<T, L>Mutable native reference &'l mut T
Outlives<L>Lifetime outlives bound
ValidFor<L>Type outlives bound T: 'l
Dyn<T, L>Native trait object with an optional authored lifetime
Capture<T>Exact opaque-type capture set
Impl<T, C>Native opaque impl Trait contract with captures
MaybeSizedRust ?Sized generic bound
scalarExact Rust scalar-value contract, including Rust char
constPtr<T>Native immutable raw pointer *const T
mutPtr<T>Native mutable raw pointer *mut T

@tsonic/rust/lang.js

ExportMeaning
ref<T, L>(value)Form one exact shared native reference
mut<T, L>(value)Form one exact mutable native reference
load(reference)Read through an exact native reference
store(reference, value)Write through an exact mutable native reference

Portable ownership markers such as sharedBorrow, mutableBorrow, and move, safe typed locations, native-pointer operations, unsafeContext, and the safety builder remain owned by @tsonic/core/*. The Rust modules above exist only for semantic controls that are intrinsically Rust-specific.

All listed modules are compiler-owned virtual declarations, not npm packages.