pub struct DenseOperationTable { /* private fields */ }Expand description
A fixed 256-slot selector table with every missing selector pre-filled as NOP.
This removes the Option/match from the hot dispatch path. It is still not
literally branchless at the CPU level, because calling a function pointer is
an indirect branch. The useful property is that selector choice is table
indexing rather than an if/else or match chain.
Implementations§
Source§impl DenseOperationTable
impl DenseOperationTable
Trait Implementations§
Source§impl Clone for DenseOperationTable
impl Clone for DenseOperationTable
Source§impl Debug for DenseOperationTable
impl Debug for DenseOperationTable
Auto Trait Implementations§
impl Freeze for DenseOperationTable
impl RefUnwindSafe for DenseOperationTable
impl Send for DenseOperationTable
impl Sync for DenseOperationTable
impl Unpin for DenseOperationTable
impl UnsafeUnpin for DenseOperationTable
impl UnwindSafe for DenseOperationTable
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