Skip to main content

from_host_scalar

Function from_host_scalar 

Source
pub fn from_host_scalar<T: Element>(h: &HostArray) -> T
Expand description

The element of a host array of one element of type T.

ยงPanics

Panics if the array does not have one element of type T.