pub enum Backend {
Auto,
Gpu,
Cpu,
}Expand description
Which backend a caller wants for a scan. Auto places each call by what
this process has measured at the input’s size: the CPU engine alone, or,
for a pattern that reads only token kinds when a device is present, the
input’s anchors split between the host’s cores and the device.
Variants§
Auto
Choose per input (the default).
Gpu
Force the device; fall back to the CPU when the pattern is ineligible or no device is present.
Cpu
Force the CPU; never probe or touch the device.
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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