#[non_exhaustive]pub struct BackendCapabilities { /* private fields */ }Expand description
Capability descriptor of a compute backend.
Implementations§
Source§impl BackendCapabilities
impl BackendCapabilities
Sourcepub fn new(
device_streams: bool,
max_batch: Option<usize>,
dtype_mask: u64,
) -> Self
pub fn new( device_streams: bool, max_batch: Option<usize>, dtype_mask: u64, ) -> Self
Create a new BackendCapabilities.
Sourcepub fn device_streams(&self) -> &bool
pub fn device_streams(&self) -> &bool
Whether the backend supports device streams (async/event completion).
Sourcepub fn dtype_mask(&self) -> &u64
pub fn dtype_mask(&self) -> &u64
Bitfield for supported data types (backend-defined; optional use).
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§fn clone(&self) -> BackendCapabilities
fn clone(&self) -> BackendCapabilities
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 BackendCapabilities
impl Debug for BackendCapabilities
Source§impl PartialEq for BackendCapabilities
impl PartialEq for BackendCapabilities
impl Copy for BackendCapabilities
impl Eq for BackendCapabilities
impl StructuralPartialEq for BackendCapabilities
Auto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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