pub struct HostDevice;Expand description
CPU device for the Host backend.
Unit struct since there’s only one CPU device.
Trait Implementations§
Source§impl Clone for HostDevice
impl Clone for HostDevice
impl Copy for HostDevice
Source§impl Debug for HostDevice
impl Debug for HostDevice
Source§impl Default for HostDevice
impl Default for HostDevice
Source§impl Device for HostDevice
impl Device for HostDevice
Source§impl DeviceOps for HostDevice
impl DeviceOps for HostDevice
Source§impl Display for HostDevice
impl Display for HostDevice
impl Eq for HostDevice
Source§impl Hash for HostDevice
impl Hash for HostDevice
Source§impl PartialEq for HostDevice
impl PartialEq for HostDevice
impl StructuralPartialEq for HostDevice
Auto Trait Implementations§
impl Freeze for HostDevice
impl RefUnwindSafe for HostDevice
impl Send for HostDevice
impl Sync for HostDevice
impl Unpin for HostDevice
impl UnsafeUnpin for HostDevice
impl UnwindSafe for HostDevice
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more