#[repr(C)]pub struct RKRDlpackExportOptions {
pub dtype: RKRDLDataType,
pub device: RKRDLDevice,
}Expand description
Options for DLPack export: requested DLPack DLDataType + DLDevice.
Pass to *_dlpack_ex. NULL → kDLFloat / 64 / lanes 1 on CPU.
Dtype (CPU): any combination dlpk can host from converted CON data —
signed/unsigned ints (8/16/32/64), IEEE floats (32/64), and bool (8-bit
DLPack convention). Values are cast from on-disk binary64 (or u64 for atom
ids). Complex / bfloat / float8 / opaque / multi-lane types return
RKR_STATUS_VALIDATION_ERROR until implemented.
Device: kDLCPU always; with --features cuda, kDLCUDA performs H2D
into real device memory then exports DLPack. Other devices return
RKR_STATUS_FEATURE_DISABLED so callers can feature-detect.
Fields§
§dtype: RKRDLDataTypeRequested element type (DLPack DLDataType layout).
device: RKRDLDeviceRequested placement (DLPack DLDevice layout).
Trait Implementations§
Source§impl Clone for RKRDlpackExportOptions
impl Clone for RKRDlpackExportOptions
Source§fn clone(&self) -> RKRDlpackExportOptions
fn clone(&self) -> RKRDlpackExportOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RKRDlpackExportOptions
Source§impl Debug for RKRDlpackExportOptions
impl Debug for RKRDlpackExportOptions
Auto Trait Implementations§
impl Freeze for RKRDlpackExportOptions
impl RefUnwindSafe for RKRDlpackExportOptions
impl Send for RKRDlpackExportOptions
impl Sync for RKRDlpackExportOptions
impl Unpin for RKRDlpackExportOptions
impl UnsafeUnpin for RKRDlpackExportOptions
impl UnwindSafe for RKRDlpackExportOptions
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