#[repr(C)]pub struct PJRT_Client_BufferFromHostBuffer_Args {Show 15 fields
pub struct_size: usize,
pub extension_start: *mut PJRT_Extension_Base,
pub client: *mut PJRT_Client,
pub data: *const c_void,
pub type_: PJRT_Buffer_Type,
pub dims: *const i64,
pub num_dims: usize,
pub byte_strides: *const i64,
pub num_byte_strides: usize,
pub host_buffer_semantics: PJRT_HostBufferSemantics,
pub device: *mut PJRT_Device,
pub memory: *mut PJRT_Memory,
pub device_layout: *mut PJRT_Buffer_MemoryLayout,
pub done_with_host_buffer: *mut PJRT_Event,
pub buffer: *mut PJRT_Buffer,
}Fields§
§struct_size: usize§extension_start: *mut PJRT_Extension_Base§client: *mut PJRT_Client§data: *const c_void§type_: PJRT_Buffer_Type§dims: *const i64§num_dims: usize§byte_strides: *const i64§num_byte_strides: usize§host_buffer_semantics: PJRT_HostBufferSemantics§device: *mut PJRT_Device§memory: *mut PJRT_Memory§device_layout: *mut PJRT_Buffer_MemoryLayout§done_with_host_buffer: *mut PJRT_Event§buffer: *mut PJRT_BufferImplementations§
Source§impl PJRT_Client_BufferFromHostBuffer_Args
impl PJRT_Client_BufferFromHostBuffer_Args
pub const STRUCT_SIZE: usize = 120usize
pub fn new() -> Self
Trait Implementations§
Source§impl Clone for PJRT_Client_BufferFromHostBuffer_Args
impl Clone for PJRT_Client_BufferFromHostBuffer_Args
Source§fn clone(&self) -> PJRT_Client_BufferFromHostBuffer_Args
fn clone(&self) -> PJRT_Client_BufferFromHostBuffer_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_BufferFromHostBuffer_Args
Auto Trait Implementations§
impl Freeze for PJRT_Client_BufferFromHostBuffer_Args
impl RefUnwindSafe for PJRT_Client_BufferFromHostBuffer_Args
impl !Send for PJRT_Client_BufferFromHostBuffer_Args
impl !Sync for PJRT_Client_BufferFromHostBuffer_Args
impl Unpin for PJRT_Client_BufferFromHostBuffer_Args
impl UnwindSafe for PJRT_Client_BufferFromHostBuffer_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)