pub enum Dispatch {
JumpTable,
FnPtrLut,
}Expand description
Dispatch strategy for code generation.
Controls how decoders, sub-decoders, and emulator LUTs dispatch to handlers. The names are language-neutral; each backend maps them to the appropriate language construct.
Variants§
JumpTable
#[inline(always)] match statement (Rust), switch (C++), etc.
FnPtrLut
Static function pointer lookup table.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dispatch
impl<'de> Deserialize<'de> for Dispatch
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Dispatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Dispatch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Dispatch
impl Serialize for Dispatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Dispatch
impl Eq for Dispatch
impl StructuralPartialEq for Dispatch
Auto Trait Implementations§
impl Freeze for Dispatch
impl RefUnwindSafe for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnsafeUnpin for Dispatch
impl UnwindSafe for Dispatch
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