Trait menoh::Dtype[][src]

pub unsafe trait Dtype {
    const ID: menoh_dtype;
    fn check(dtype: menoh_dtype) -> Result<(), Error> { ... }
}

Representation of scalar types supported by Menoh.

Associated Constants

Integer specifying the scalar type.

assert_eq!(f32::ID, menoh_sys::menoh_dtype_float as menoh_sys::menoh_dtype);

Provided Methods

Verify a scalar type.

assert!(f32::check(f32::ID).is_ok());
assert!(f32::check(f32::ID + 1).is_err());

Implementations on Foreign Types

impl Dtype for f32
[src]

Implementors