pub struct IntrinsicRegistry { /* private fields */ }Expand description
Registry for mapping Rust function names to GPU intrinsics.
Implementations§
Source§impl IntrinsicRegistry
impl IntrinsicRegistry
Sourcepub fn lookup(&self, name: &str) -> Option<&GpuIntrinsic>
pub fn lookup(&self, name: &str) -> Option<&GpuIntrinsic>
Look up an intrinsic by Rust function name.
Sourcepub fn register(&mut self, rust_name: &str, intrinsic: GpuIntrinsic)
pub fn register(&mut self, rust_name: &str, intrinsic: GpuIntrinsic)
Register a custom intrinsic mapping.
Sourcepub fn is_intrinsic(&self, name: &str) -> bool
pub fn is_intrinsic(&self, name: &str) -> bool
Check if a name is a known intrinsic.
Trait Implementations§
Source§impl Debug for IntrinsicRegistry
impl Debug for IntrinsicRegistry
Auto Trait Implementations§
impl Freeze for IntrinsicRegistry
impl RefUnwindSafe for IntrinsicRegistry
impl Send for IntrinsicRegistry
impl Sync for IntrinsicRegistry
impl Unpin for IntrinsicRegistry
impl UnwindSafe for IntrinsicRegistry
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