[−][src]Struct rust_gpu_tools::opencl::Device
Fields
device: DeviceImplementations
impl Device[src]
pub fn brand(&self) -> Brand[src]
pub fn name(&self) -> String[src]
pub fn memory(&self) -> u64[src]
pub fn is_little_endian(&self) -> GPUResult<bool>[src]
pub fn bus_id(&self) -> Option<BusId>[src]
pub fn all() -> Vec<&'static Device>[src]
Return all available GPU devices of supported brands, ordered by brand as
defined by Brand::all().
pub fn all_iter() -> impl Iterator<Item = &'static Device>[src]
pub fn by_bus_id(bus_id: BusId) -> GPUResult<&'static Device>[src]
pub fn by_brand(brand: Brand) -> Option<&'static Vec<Device>>[src]
pub fn cl_device_id(&self) -> cl_device_id[src]
Trait Implementations
impl Clone for Device[src]
impl Debug for Device[src]
impl Eq for Device[src]
impl Hash for Device[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Device> for Device[src]
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,