[][src]Struct opencv::core::DeviceInfo

pub struct DeviceInfo { /* fields omitted */ }

Class providing functionality for querying the specified GPU properties.

Implementations

impl DeviceInfo[src]

impl DeviceInfo[src]

pub fn default() -> Result<DeviceInfo>[src]

creates DeviceInfo object for the current GPU

pub fn new(device_id: i32) -> Result<DeviceInfo>[src]

The constructors.

Parameters

  • device_id: System index of the CUDA device starting with 0.

Constructs the DeviceInfo object for the specified device. If device_id parameter is missed, it constructs an object for the current device.

Trait Implementations

impl Boxed for DeviceInfo[src]

impl DeviceInfoTrait for DeviceInfo[src]

impl Drop for DeviceInfo[src]

impl Send for DeviceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.