#[repr(transparent)]pub struct VibeOpCode(pub u64);Expand description
Process-local 64-bit prepared dispatch handle: [ns_slot: u32][sub_id: u16][func_id: u16].
Important: VibeOpCode is a process-local runtime handle bound to a
RegistryGeneration. It is never persisted as a canonical semantic ID and
never written into NQuin.predicate[0..7] (SlgOpcode).
Tuple Fields§
§0: u64Implementations§
Source§impl VibeOpCode
impl VibeOpCode
Sourcepub const fn pack(ns_slot: u32, stable_id: StableFuncId) -> Self
pub const fn pack(ns_slot: u32, stable_id: StableFuncId) -> Self
Packs a registry slot and StableFuncId into a VibeOpCode.
Sourcepub const fn sub_namespace_id(self) -> u16
pub const fn sub_namespace_id(self) -> u16
Extracts the sub-namespace ID (bits 16..31).
Sourcepub const fn stable_id(self) -> StableFuncId
pub const fn stable_id(self) -> StableFuncId
Extracts the StableFuncId.
Trait Implementations§
Source§impl Clone for VibeOpCode
impl Clone for VibeOpCode
impl Copy for VibeOpCode
Source§impl Debug for VibeOpCode
impl Debug for VibeOpCode
impl Eq for VibeOpCode
Source§impl Hash for VibeOpCode
impl Hash for VibeOpCode
Source§impl PartialEq for VibeOpCode
impl PartialEq for VibeOpCode
impl StructuralPartialEq for VibeOpCode
Auto Trait Implementations§
impl Freeze for VibeOpCode
impl RefUnwindSafe for VibeOpCode
impl Send for VibeOpCode
impl Sync for VibeOpCode
impl Unpin for VibeOpCode
impl UnsafeUnpin for VibeOpCode
impl UnwindSafe for VibeOpCode
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