pub struct SpecTensorDescriptor {
pub symbol: Symbol,
pub dtype: Symbol,
pub implementation: &'static str,
pub storage: &'static str,
}Expand description
Metadata describing one registered SpecTensor backend, surfaced as a
descriptor value so the registry can advertise the specialized tensor.
Fields§
§symbol: SymbolThe symbol under which the backend’s descriptor value is installed.
dtype: SymbolThe element number domain (dtype) the backend specializes on.
implementation: &'static strHuman-readable name of the implementing crate or strategy.
storage: &'static strHuman-readable description of the backend’s storage layout.
Trait Implementations§
Source§impl Clone for SpecTensorDescriptor
impl Clone for SpecTensorDescriptor
Source§fn clone(&self) -> SpecTensorDescriptor
fn clone(&self) -> SpecTensorDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpecTensorDescriptor
impl Debug for SpecTensorDescriptor
impl Eq for SpecTensorDescriptor
Source§impl PartialEq for SpecTensorDescriptor
impl PartialEq for SpecTensorDescriptor
Source§fn eq(&self, other: &SpecTensorDescriptor) -> bool
fn eq(&self, other: &SpecTensorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpecTensorDescriptor
Auto Trait Implementations§
impl Freeze for SpecTensorDescriptor
impl RefUnwindSafe for SpecTensorDescriptor
impl Send for SpecTensorDescriptor
impl Sync for SpecTensorDescriptor
impl Unpin for SpecTensorDescriptor
impl UnsafeUnpin for SpecTensorDescriptor
impl UnwindSafe for SpecTensorDescriptor
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