Skip to main content

Module hybrid

Module hybrid 

Source
Expand description

Intermediate Representation (IR), deterministic XXH64 schema hashing, interface ID assignment, and strict semantic validation for NV’s Nitro-inspired Rust-first Hybrid FFI code generator.

Structs§

HybridAliasSpec
Opaque handle or typedef alias declared with #[nv_hybrid_alias] pub type ... = ...;.
HybridConstSpec
Named constant declared with #[nv_hybrid_const] pub const ....
HybridEnumSpec
C-ABI enum declared with #[nv_hybrid_enum].
HybridEnumVariant
One variant of a #[repr(u8|u16|u32|i32)] #[nv_hybrid_enum].
HybridEventSpec
Typed event declared with #[event] or #[event(retained)] on a HybridModuleSpec or HybridViewSpec.
HybridFieldSpec
Named field of a #[nv_hybrid_struct] or #[nv_hybrid_union].
HybridFileSpec
Complete parsed or programmatically constructed Hybrid FFI specification file.
HybridMethodSpec
Method declared on a HybridModuleSpec, imperative #[method] on a HybridViewSpec, or C API function.
HybridModuleSpec
Nitro-style native module declared with #[nv_hybrid_module(name = "...")].
HybridParamSpec
Named parameter of a method or view event.
HybridPropSpec
Typed prop declared with #[prop] on a HybridViewSpec.
HybridStructSpec
Structured record declared with #[nv_hybrid_struct] or #[nv_hybrid_union].
HybridViewSpec
Nitro-style native view component declared with #[nv_hybrid_view(name = "...")].
InterfaceId
Modular C ABI interface identifier (>= 0x1000_0000 for generated hybrid modules, or explicit low IDs).

Enums§

DefaultLiteral
A prop default: a Scalar literal shared by the Dart, Rust, and Swift targets (true, bare integers, .0 for an integer default of a float, format_float_literal), or a kind each target spells itself.
HybridBinding
FFI binding mechanism for a hybrid module or view (binding = "direct" default, or "vtable").
HybridDefaultValue
Typed literal default value for a #[prop(default = ...)] on a HybridView.
HybridImpl
Which side implements a binding = "direct" module (impl = "rust" default, or "host").
HybridTarget
Target languages emitted by the Hybrid FFI generator.
HybridType
Rich typed system shared across Hybrid modules, views, structs, enums, and events.
PodOptionScope
Which signatures carry C options: Dart, Rust, Swift, TS, and Kotlin bind only modules and views; the C header also declares the static C functions.

Constants§

NV_HYBRID_ABI_VERSION
Current Hybrid FFI vtable ABI version stamped into every generated vtable (compile-time locked against nativeview_abi::hybrid::NV_HYBRID_ABI_VERSION in nativeview-codegen).
NV_HYBRID_INTERFACE_ID_BASE
Base interface ID for generated hybrid vtables (>= 0x1000_0000), keeping the low range (1..=4) permanently reserved for core NV interfaces (NV_IFACE_SURFACE..NV_IFACE_DEV).
NV_HYBRID_INTERFACE_ID_MASK
Bitmask for the 28-bit deterministic hash payload inside a hybrid interface_id.
RESERVED_BATCH_PROTOCOL_STATUSES
Reserved NvModStatus protocol error codes that custom #[batchable] error enums cannot reuse (compile-time locked against nativeview_abi::NvModStatus::ALL + is_batch_protocol_status in nativeview-codegen).

Functions§

compute_hybrid_interface_id
Computes a deterministic hybrid interface_id >= 0x1000_0000 for a module or view.
reserved_batch_protocol_status_name
Returns the NvModStatus variant name if code is a reserved batch protocol status.