#[repr(C)]pub struct PJRT_Client_CreateViewOfDeviceBuffer_Args {Show 13 fields
pub struct_size: usize,
pub extension_start: *mut PJRT_Extension_Base,
pub client: *mut PJRT_Client,
pub device_buffer_ptr: *mut c_void,
pub dims: *const i64,
pub num_dims: usize,
pub element_type: PJRT_Buffer_Type,
pub layout: *mut PJRT_Buffer_MemoryLayout,
pub device: *mut PJRT_Device,
pub on_delete_callback: Option<unsafe extern "C" fn(device_buffer_ptr: *mut c_void, user_arg: *mut c_void)>,
pub on_delete_callback_arg: *mut c_void,
pub stream: isize,
pub buffer: *mut PJRT_Buffer,
}Fields§
§struct_size: usize§extension_start: *mut PJRT_Extension_Base§client: *mut PJRT_Client§device_buffer_ptr: *mut c_void§dims: *const i64§num_dims: usize§element_type: PJRT_Buffer_Type§layout: *mut PJRT_Buffer_MemoryLayout§device: *mut PJRT_Device§on_delete_callback: Option<unsafe extern "C" fn(device_buffer_ptr: *mut c_void, user_arg: *mut c_void)>§on_delete_callback_arg: *mut c_void§stream: isize§buffer: *mut PJRT_BufferImplementations§
Source§impl PJRT_Client_CreateViewOfDeviceBuffer_Args
impl PJRT_Client_CreateViewOfDeviceBuffer_Args
pub const STRUCT_SIZE: usize = 104usize
pub fn new() -> Self
Trait Implementations§
Source§impl Clone for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl Clone for PJRT_Client_CreateViewOfDeviceBuffer_Args
Source§fn clone(&self) -> PJRT_Client_CreateViewOfDeviceBuffer_Args
fn clone(&self) -> PJRT_Client_CreateViewOfDeviceBuffer_Args
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PJRT_Client_CreateViewOfDeviceBuffer_Args
Auto Trait Implementations§
impl Freeze for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl RefUnwindSafe for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl !Send for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl !Sync for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl Unpin for PJRT_Client_CreateViewOfDeviceBuffer_Args
impl UnwindSafe for PJRT_Client_CreateViewOfDeviceBuffer_Args
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)