[][src]Trait menoh::Dtype

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

Representation of scalar types supported by Menoh.

Associated Constants

const ID: menoh_dtype

Integer specifying the scalar type.

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

Provided methods

fn check(dtype: menoh_dtype) -> Result<(), Error>

Verify a scalar type.

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

Implementations on Foreign Types

impl Dtype for f32
[src]

Loading content...

Implementors

Loading content...