pub struct ShuffledOperationTable { /* private fields */ }Expand description
Operation table whose externally visible bytecode selectors are shuffled.
Implementations§
Source§impl ShuffledOperationTable
impl ShuffledOperationTable
Sourcepub fn new(logical: OperationTable, seed: u64) -> Self
pub fn new(logical: OperationTable, seed: u64) -> Self
Create a shuffled table from an existing logical table.
Sourcepub fn encode_selector(&self, logical: u8) -> u8
pub fn encode_selector(&self, logical: u8) -> u8
Encode logical selector for storage/transmission.
Sourcepub fn execute_physical(
&self,
physical: u8,
frame: OpFrame,
) -> DispatchResult<OpFrame>
pub fn execute_physical( &self, physical: u8, frame: OpFrame, ) -> DispatchResult<OpFrame>
Execute using a shuffled physical selector.
Trait Implementations§
Source§impl Clone for ShuffledOperationTable
impl Clone for ShuffledOperationTable
Auto Trait Implementations§
impl Freeze for ShuffledOperationTable
impl RefUnwindSafe for ShuffledOperationTable
impl Send for ShuffledOperationTable
impl Sync for ShuffledOperationTable
impl Unpin for ShuffledOperationTable
impl UnsafeUnpin for ShuffledOperationTable
impl UnwindSafe for ShuffledOperationTable
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