#[repr(C)]pub struct HurrayIoSlice {
pub ptr: *const u8,
pub len: usize,
}Expand description
One borrowed payload: a pointer and a length.
Borrowed for the duration of the hurray_writer_write_tensor call and not retained
afterwards. A zero-length slice MAY carry a null ptr.
Fields§
§ptr: *const u8First byte of the payload.
len: usizePayload length in bytes. MUST equal the declared byte_size of the buffer handle
at the same index of the descriptor’s buffer table.
Auto Trait Implementations§
impl !Send for HurrayIoSlice
impl !Sync for HurrayIoSlice
impl Freeze for HurrayIoSlice
impl RefUnwindSafe for HurrayIoSlice
impl Unpin for HurrayIoSlice
impl UnsafeUnpin for HurrayIoSlice
impl UnwindSafe for HurrayIoSlice
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