pub trait CubeElement:
Debug
+ Send
+ Sync
+ 'static
+ Clone
+ Pod {
// Required methods
fn type_name() -> &'static str;
fn as_bytes(slice: &[Self]) -> &[u8] ⓘ;
fn from_bytes(bytes: &[u8]) -> &[Self];
fn cube_elem() -> Elem;
fn maximum_value() -> Self;
fn minimum_value() -> Self;
}
Expand description
The base element trait for the jit backend.
Required Methods§
Sourcefn from_bytes(bytes: &[u8]) -> &[Self]
fn from_bytes(bytes: &[u8]) -> &[Self]
Convert a slice of bytes to a slice of elements.
Sourcefn maximum_value() -> Self
fn maximum_value() -> Self
Highest possible value
Sourcefn minimum_value() -> Self
fn minimum_value() -> Self
Lowest possible value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.