Trait faster::intrin::Upcast [] [src]

pub trait Upcast<T> {
    fn upcast(self) -> (T, T);
}

Required Methods

Return two vectors containing elements of the same value, but different type. The first vector contains the first half of self, and the second vector contains the second half. Both returned vectors are equal in size to self.

Examples

extern crate faster;
use faster::*;

assert_eq!(i8s::halfs(2, 3).upcast(), (i16s(2), i16s(3)))

Implementors