pub struct TensorReferenceType(/* private fields */);Expand description
A tensor reference type for reflection.
C++ equivalent: MTL::TensorReferenceType
Implementations§
Source§impl TensorReferenceType
impl TensorReferenceType
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn index_type(&self) -> DataType
pub fn index_type(&self) -> DataType
Get the index type.
C++ equivalent: DataType indexType() const
Sourcepub fn tensor_data_type(&self) -> TensorDataType
pub fn tensor_data_type(&self) -> TensorDataType
Get the tensor data type.
C++ equivalent: TensorDataType tensorDataType() const
Sourcepub fn dimensions_ptr(&self) -> *const c_void
pub fn dimensions_ptr(&self) -> *const c_void
Get the dimensions as a raw pointer.
C++ equivalent: TensorExtents* dimensions() const
Trait Implementations§
Source§impl Clone for TensorReferenceType
impl Clone for TensorReferenceType
Source§impl Drop for TensorReferenceType
impl Drop for TensorReferenceType
Source§impl Referencing for TensorReferenceType
impl Referencing for TensorReferenceType
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for TensorReferenceType
impl Sync for TensorReferenceType
Auto Trait Implementations§
impl Freeze for TensorReferenceType
impl RefUnwindSafe for TensorReferenceType
impl Unpin for TensorReferenceType
impl UnwindSafe for TensorReferenceType
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