#[repr(C)]pub struct RKRDLDevice {
pub device_type: i32,
pub device_id: i32,
}Expand description
Device request — layout-identical to DLPack DLDevice
(DLDeviceType device_type, int32_t device_id).
Fields§
§device_type: i32DLDeviceType (e.g. rkr_dl_device_type::RKR_DL_CPU).
device_id: i32Trait Implementations§
Source§impl Clone for RKRDLDevice
impl Clone for RKRDLDevice
Source§fn clone(&self) -> RKRDLDevice
fn clone(&self) -> RKRDLDevice
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 RKRDLDevice
Auto Trait Implementations§
impl Freeze for RKRDLDevice
impl RefUnwindSafe for RKRDLDevice
impl Send for RKRDLDevice
impl Sync for RKRDLDevice
impl Unpin for RKRDLDevice
impl UnsafeUnpin for RKRDLDevice
impl UnwindSafe for RKRDLDevice
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