[][src]Trait accel::memory::scalar::Scalar

pub trait Scalar: Num + Debug + Copy + Send + Sync {
    fn format() -> ArrayFormatTag;

    fn size_of() -> usize { ... }
fn to_le_u8(self) -> Option<u8> { ... }
fn to_le_u16(self) -> Option<u16> { ... }
fn to_le_u32(self) -> Option<u32> { ... } }

Required methods

fn format() -> ArrayFormatTag

Loading content...

Provided methods

fn size_of() -> usize

fn to_le_u8(self) -> Option<u8>

Get little endian format in u8

fn to_le_u16(self) -> Option<u16>

Get little endian format in u16

fn to_le_u32(self) -> Option<u32>

Get little endian format in u32

Loading content...

Implementations on Foreign Types

impl Scalar for u8[src]

impl Scalar for u16[src]

impl Scalar for u32[src]

impl Scalar for i8[src]

impl Scalar for i16[src]

impl Scalar for i32[src]

impl Scalar for f32[src]

Loading content...

Implementors

Loading content...