pub struct FallbackResult<T> {
pub value: T,
pub path: ExecutionPath,
}Expand description
The output of a fallback-aware operation, bundling the value with the execution path that produced it.
Fields§
§value: TThe computed value.
path: ExecutionPathWhich path (GPU or CPU) produced the value.
Trait Implementations§
Source§impl<T: Clone> Clone for FallbackResult<T>
impl<T: Clone> Clone for FallbackResult<T>
Auto Trait Implementations§
impl<T> Freeze for FallbackResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for FallbackResult<T>where
T: RefUnwindSafe,
impl<T> Send for FallbackResult<T>where
T: Send,
impl<T> Sync for FallbackResult<T>where
T: Sync,
impl<T> Unpin for FallbackResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for FallbackResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FallbackResult<T>where
T: UnwindSafe,
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