#[repr(C)]pub struct EfTensorView {
pub ptr: *mut u8,
pub len: usize,
}Expand description
A mapped CPU window over a tensor’s bytes.
By-value with no version field and no reserved tail, so its size
is baked into consumer call sites, so it evolves by a suffixed successor
(ef_tensor_view2 + new entry points), never in place. The pointer is
valid from ef_tensor_map until the matching ef_tensor_unmap; writing
through it is allowed only when the map was taken with a writable access.
Fields§
§ptr: *mut u8§len: usizeTrait Implementations§
Source§impl Clone for EfTensorView
impl Clone for EfTensorView
impl Copy for EfTensorView
Auto Trait Implementations§
impl !Send for EfTensorView
impl !Sync for EfTensorView
impl Freeze for EfTensorView
impl RefUnwindSafe for EfTensorView
impl Unpin for EfTensorView
impl UnsafeUnpin for EfTensorView
impl UnwindSafe for EfTensorView
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