pub struct BufferOptions {
pub zero_init: bool,
pub cpu_accessible: bool,
}Expand description
Options for buffer allocation.
Fields§
§zero_init: boolWhether to zero-initialize the buffer.
cpu_accessible: boolWhether this buffer is CPU-accessible.
CPU allocator: always true (host memory is always accessible). CUDA allocator: false = device-only (cuMemAlloc), true = unified (cuMemAllocManaged).
Trait Implementations§
Source§impl Clone for BufferOptions
impl Clone for BufferOptions
Source§fn clone(&self) -> BufferOptions
fn clone(&self) -> BufferOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferOptions
impl Debug for BufferOptions
Auto Trait Implementations§
impl Freeze for BufferOptions
impl RefUnwindSafe for BufferOptions
impl Send for BufferOptions
impl Sync for BufferOptions
impl Unpin for BufferOptions
impl UnsafeUnpin for BufferOptions
impl UnwindSafe for BufferOptions
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