pub struct MpsGraphDevice {
pub index: usize,
}Expand description
Device for the MPSGraph backend (Apple GPU).
Fields§
§index: usizeTrait Implementations§
Source§impl Clone for MpsGraphDevice
impl Clone for MpsGraphDevice
Source§fn clone(&self) -> MpsGraphDevice
fn clone(&self) -> MpsGraphDevice
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 MpsGraphDevice
impl Debug for MpsGraphDevice
Source§impl Default for MpsGraphDevice
impl Default for MpsGraphDevice
Source§fn default() -> MpsGraphDevice
fn default() -> MpsGraphDevice
Returns the “default value” for a type. Read more
Source§impl Device for MpsGraphDevice
impl Device for MpsGraphDevice
Source§fn device_count(_type_id: u16) -> usize
fn device_count(_type_id: u16) -> usize
Returns the number of devices available under the provided type id.
Source§fn device_count_total() -> usize
fn device_count_total() -> usize
Returns the total number of devices that can be handled by the runtime.
Source§impl DeviceOps for MpsGraphDevice
impl DeviceOps for MpsGraphDevice
Source§impl PartialEq for MpsGraphDevice
impl PartialEq for MpsGraphDevice
impl Copy for MpsGraphDevice
impl Eq for MpsGraphDevice
impl StructuralPartialEq for MpsGraphDevice
Auto Trait Implementations§
impl Freeze for MpsGraphDevice
impl RefUnwindSafe for MpsGraphDevice
impl Send for MpsGraphDevice
impl Sync for MpsGraphDevice
impl Unpin for MpsGraphDevice
impl UnsafeUnpin for MpsGraphDevice
impl UnwindSafe for MpsGraphDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.